]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/functions
Changed checkfs to auto reboot after correctable fsck fixes.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / functions
index 365dbe02ae3cac9666c7cd9c821aca3bb5cdd4c4..ea840d1a56d1decc4c945e1baadb72d3639fed41 100644 (file)
@@ -22,7 +22,7 @@ export PATH="/bin:/usr/bin:/sbin:/usr/sbin"
 RELOADSIG="HUP"
 
 # Number of seconds between STOPSIG and FALLBACK when stopping processes
-KILLDELAY="3"
+KILLDELAY="10"
 
 ## Screen Dimensions
 # Find current screen size
@@ -155,9 +155,9 @@ print_error_msg()
        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 or wait 3 minutes..." ${INFO}
+       boot_mesg -n "Press Enter to continue or wait a minute..." ${INFO}
        boot_mesg "" ${NORMAL}
-       read -t 180 ENTER
+       read -t 60 ENTER
 }
 
 check_script_status()
@@ -680,8 +680,8 @@ log_warning_msg() {
 }
 
 run_subdir() {
-       $DIR=$1
-       for i in $( ls -v ${DIR}* 2> /dev/null); do
+       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
@@ -689,6 +689,8 @@ run_subdir() {
                        K) ${i} stop ;;
                        RS) ${i} restart ;;
                        RL) ${i} reload ;;
+                       U) ${i} up ;;
+                       D) ${i} down ;;
                        *) ${i} ;;
                esac
        done