V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m50s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m50s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
PREREQ="udev"
|
||||
|
||||
prereqs() {
|
||||
echo "$PREREQ"
|
||||
echo "${PREREQ}"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
@@ -13,27 +13,34 @@ case "$1" in
|
||||
;;
|
||||
esac
|
||||
|
||||
# shellcheck disable=SC2292
|
||||
[ -x /sbin/dropbear ] || exit 0
|
||||
|
||||
|
||||
run_dropbear() {
|
||||
# Remove old flags for dropbear version 2022.83
|
||||
# only accepts flags from /etc/dropbear/dropbear.conf
|
||||
#local flags="Fs"
|
||||
#[ "$debug" != y ] || flags="E$flags" # log to standard error
|
||||
### CISS.debian.installer
|
||||
### Remove old flags for dropbear version 2025.88-2.
|
||||
### Only accepts flags from '/etc/dropbear/dropbear.conf'.
|
||||
|
||||
# always run configure_networking() before dropbear(8); on NFS
|
||||
#local flags="Fs"
|
||||
# shellcheck disable=SC2292
|
||||
[ "${debug}" != y ] || flags="E${flags}" # log to standard error
|
||||
|
||||
# Always run configure_networking() before dropbear(8); on NFS
|
||||
# mounts this has been done already
|
||||
[ "$BOOT" = nfs ] || configure_networking
|
||||
|
||||
# shellcheck disable=SC2292
|
||||
[ "${BOOT}" = nfs ] || configure_networking
|
||||
|
||||
log_begin_msg "Starting dropbear"
|
||||
# using exec and keeping dropbear in the foreground enables the
|
||||
# Using exec and keeping dropbear in the foreground enables the
|
||||
# init-bottom script to kill the remaining ipconfig processes if
|
||||
# someone unlocks the rootfs from the console while the network is
|
||||
# being configured
|
||||
exec /sbin/dropbear ${DROPBEAR_OPTIONS-}
|
||||
exec /sbin/dropbear "${DROPBEAR_OPTIONS-}"
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2292
|
||||
if [ -e /etc/dropbear/dropbear.conf ]; then
|
||||
. /etc/dropbear/dropbear.conf
|
||||
fi
|
||||
@@ -44,7 +51,9 @@ fi
|
||||
# with console access can enter the passphrase immediately. (With the
|
||||
# default ip=dhcp, configure_networking hangs for 5mins or so when the
|
||||
# network is unavailable, for instance.)
|
||||
[ "$BOOT" != nfs ] || configure_networking
|
||||
|
||||
# shellcheck disable=SC2292
|
||||
[ "${BOOT}" != nfs ] || configure_networking
|
||||
|
||||
run_dropbear &
|
||||
echo $! >/run/dropbear.pid
|
||||
|
||||
Reference in New Issue
Block a user