Allow dropbear.conf to customize listen address
This commit is contained in:
parent
3905a71c1d
commit
9dd8fda478
1 changed files with 10 additions and 1 deletions
|
@ -6,7 +6,16 @@ run_hook ()
|
||||||
mount -t devpts devpts /dev/pts
|
mount -t devpts devpts /dev/pts
|
||||||
|
|
||||||
echo "Starting dropbear"
|
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 ()
|
run_cleanuphook ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue