added sftp-server

This commit is contained in:
wt
2024-12-10 14:10:20 +07:00
parent 010d61e828
commit 0ae7099814
4 changed files with 40 additions and 1 deletions
+4
View File
@@ -8,6 +8,7 @@
. ./scripts/kernel.sh
. ./scripts/zlib.sh
. ./scripts/dropbear.sh
. ./scripts/sftp_server.sh
#----------- Building rootfs ----------------------
rootfs() {
@@ -44,6 +45,9 @@ rootfs() {
if [ "$DROPBEAR_ENABLE" = "true" ]; then
dropbear
fi
if [ "$sftp_server_enable" = "true" ]; then
sftp_server
fi
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init