]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/functions
Wieder einmal die Netzwerkscripts.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / functions
index d50421dfd04f299ecb6889a9c37caa1b399891d2..365dbe02ae3cac9666c7cd9c821aca3bb5cdd4c4 100644 (file)
@@ -152,12 +152,12 @@ print_error_msg()
        boot_mesg_flush
        boot_mesg -n "If you're able to track this"
        boot_mesg -n " error down to a bug in one of the files provided by"
-       boot_mesg -n " the LFS book, please be so kind to inform us at"
-       boot_mesg " lfs-dev@linuxfromscratch.org.\n"
+       boot_mesg -n " ipfire, please be so kind to inform us at"
+       boot_mesg " info@ipfire.org.\n"
        boot_mesg_flush
-       boot_mesg -n "Press Enter to continue..." ${INFO}
+       boot_mesg -n "Press Enter to continue or wait 3 minutes..." ${INFO}
        boot_mesg "" ${NORMAL}
-       read ENTER
+       read -t 180 ENTER
 }
 
 check_script_status()
@@ -679,4 +679,19 @@ log_warning_msg() {
        return 0
 }
 
+run_subdir() {
+       $DIR=$1
+       for i in $( ls -v ${DIR}* 2> /dev/null); do
+               check_script_status
+               OUT=$(echo $(basename ${i}) | awk -F- '{ print $2 }')
+               case "$OUT" in
+                       S) ${i} start   ;;
+                       K) ${i} stop ;;
+                       RS) ${i} restart ;;
+                       RL) ${i} reload ;;
+                       *) ${i} ;;
+               esac
+       done
+}
+
 # End $rc_base/init.d/functions