added PMBUILDs for dropbear linux zlib and fix for busybox uclibc

This commit is contained in:
wt
2025-04-11 14:12:08 +07:00
parent 0e557a1dcb
commit efee03a218
8 changed files with 6244 additions and 3 deletions
+38
View File
@@ -0,0 +1,38 @@
#!/bin/sh
#--- import colors and init-funcs ---
. /usr/lib/init/colors.sh
. /usr/lib/init/init-funcs.sh
#------------------------------------
. /etc/default/dropbear
ENABLE_ROOT_LOGIN_ARGS=""
if [ "$ENABLE_ROOT_LOGIN" = "no" ]; then
ENABLE_ROOT_LOGIN_ARGS="-w -g"
fi
start() {
notify "Starting dropbear"
/usr/bin/dropbear -P /var/run/dropbear.pid $DROPBEAR_EXTRA_ARGS $ENABLE_ROOT_LOGIN_ARGS -p $DROPBEAR_PORT &> /var/log/dropbear.log
check $? "start dropbear"
return $?
}
stop() {
notify "Stopping dropbear"
kill $(cat /var/run/dropbear.pid)
check $? "stop dropbear"
return $?
}
case "$1" in
start|stop|restart|reload|help)
"$1"
;;
*)
help
;;
esac
return $?