diff --git a/mkapp/app/services/scripts/10_busybox_startup.sh b/mkapp/app/services/scripts/install/10_busybox.sh similarity index 100% rename from mkapp/app/services/scripts/10_busybox_startup.sh rename to mkapp/app/services/scripts/install/10_busybox.sh diff --git a/mkapp/app/services/scripts/30_bearssl_startup.sh b/mkapp/app/services/scripts/install/30_bearssl.sh similarity index 100% rename from mkapp/app/services/scripts/30_bearssl_startup.sh rename to mkapp/app/services/scripts/install/30_bearssl.sh diff --git a/mkapp/app/services/scripts/30_dosfstools_startup.sh b/mkapp/app/services/scripts/install/30_dosfstools.sh similarity index 100% rename from mkapp/app/services/scripts/30_dosfstools_startup.sh rename to mkapp/app/services/scripts/install/30_dosfstools.sh diff --git a/mkapp/app/services/scripts/50_dropbear_startup.sh b/mkapp/app/services/scripts/install/50_dropbear.sh similarity index 100% rename from mkapp/app/services/scripts/50_dropbear_startup.sh rename to mkapp/app/services/scripts/install/50_dropbear.sh diff --git a/mkapp/app/services/scripts/50_tinycurl_startup.sh b/mkapp/app/services/scripts/install/50_tinycurl.sh similarity index 100% rename from mkapp/app/services/scripts/50_tinycurl_startup.sh rename to mkapp/app/services/scripts/install/50_tinycurl.sh diff --git a/mkapp/app/services/startup.sh b/mkapp/app/services/startup.sh index 125f3865..b1f017cd 100755 --- a/mkapp/app/services/startup.sh +++ b/mkapp/app/services/startup.sh @@ -1,7 +1,16 @@ #!/bin/sh -for FILE in $(ls /mnt/app/services/scripts/) +if [ ! -f /mnt/app/services/scripts/install/install.done ]; then + for FILE in $(ls /mnt/app/services/scripts/install/) + do + echo "Installing service: $FILE" + /mnt/app/services/scripts/install/$FILE & + done + touch /mnt/app/services/scripts/install/install.done +fi + +for FILE in $(ls /mnt/app/services/scripts/runtime/) do echo "Starting service: $FILE" - /mnt/app/services/scripts/$FILE & + /mnt/app/services/scripts/runtime/$FILE & done