Allow dropbear.conf to customize listen address

This commit is contained in:
Andrew J. Hesford 2022-01-23 19:54:25 -05:00
parent 3905a71c1d
commit 9dd8fda478

View file

@ -6,7 +6,16 @@ run_hook ()
mount -t devpts devpts /dev/pts
echo "Starting dropbear"
/usr/sbin/dropbear -E -s -j -k
# Configuration processing and dropbear execution is done in a subshell
# to prevent dropbear.conf from inadvertently clobbering important variables
# or terminating the shell that is running /init.
(
# Load configuration options (currently only default listen address)
[ -r /etc/dropbear/dropbear.conf ] && . /etc/dropbear/dropbear.conf
/usr/sbin/dropbear -E -s -j -k -p "${dropbear_listen:-22}"
)
}
run_cleanuphook ()