V8.13.416.2025.11.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m24s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m24s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
# https://github.com/mvdan/sh
|
||||
# https://google.github.io/styleguide/shellguide.html
|
||||
# https://mywiki.wooledge.org/BashGuide
|
||||
# https://styles.goatbytes.io/lang/shell/
|
||||
# https://www.bashsupport.com/de/
|
||||
# https://www.gnu.org/software/bash/manual/
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ copy_libs() {
|
||||
copy_libs "${_BUSYBOX_BIN}"
|
||||
|
||||
### Generate /init script
|
||||
cat << 'EOF' >| "${TMPDIR}/init"
|
||||
cat << 'EOF' >| "${_TMP_DIR}/init"
|
||||
#!/bin/busybox sh
|
||||
# SPDX-Version: 3.0
|
||||
# SPDX-CreationInfo: 2025-10-11; WEIDNER, Marc S.; <msw@coresecret.dev>
|
||||
@@ -182,10 +182,10 @@ busybox poweroff -f || echo o >| /proc/sysrq-trigger
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
EOF
|
||||
|
||||
chmod +x "${TMPDIR}/init"
|
||||
chmod +x "${_TMP_DIR}/init"
|
||||
|
||||
### Create the initramfs archive.
|
||||
( cd "${TMPDIR}" && find . -print0 | cpio --null -ov --format=newc ) | gzip -9 > /boot/ciss-memwipe/initrd.img
|
||||
( cd "${_TMP_DIR}" && find . -print0 | cpio --null -ov --format=newc ) | gzip -9 > /boot/ciss-memwipe/initrd.img
|
||||
|
||||
### Default configuration.
|
||||
cat << 'EOF' >| /etc/default/ciss-memwipe
|
||||
|
||||
Reference in New Issue
Block a user