added sftp-server
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user