RELOADSIG="HUP"
# Number of seconds between STOPSIG and FALLBACK when stopping processes
-KILLDELAY="3"
+KILLDELAY="10"
## Screen Dimensions
# Find current screen size
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 a minute..." ${INFO}
boot_mesg "" ${NORMAL}
- read ENTER
+ read -t 60 ENTER
}
check_script_status()
return 0
}
-animate()
-{
- if [ $# = 0 ]
- then
- echo "Usage: animate {hook}"
- exit 1
- fi
-
- splash "$*"
+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 ;;
+ U) ${i} up ;;
+ D) ${i} down ;;
+ *) ${i} ;;
+ esac
+ done
}
# End $rc_base/init.d/functions