summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2007-05-01 19:35:45 +0200
committermaximilian attems <maks@debian.org>2007-05-01 19:35:45 +0200
commit6fd917d49cd09c5124df25c48e1458e1a87f2365 (patch)
tree7944fce59257427101ac20bcfca6f3860a4812d6 /init
parent97463b8108d05b33a09d8847c7f4d7c1be7e41db (diff)
init: ignore non-numeric rootdelay, panic bootargs
they cause funny sleep error messages: aka you can't sleep "bar" time ;) take into account that subsecond sleeps are ok. thanks david for the idea, gone for the q&d regex check.
Diffstat (limited to 'init')
-rwxr-xr-xinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/init b/init
index 7de409a..0da01d4 100755
--- a/init
+++ b/init
@@ -79,6 +79,11 @@ for x in $(cat /proc/cmdline); do
;;
rootdelay=*)
ROOTDELAY="${x#rootdelay=}"
+ case ${ROOTDELAY} in
+ *[![:digit:].]*)
+ ROOTDELAY=
+ ;;
+ esac
;;
nfsroot=*)
NFSROOT="${x#nfsroot=}"
@@ -97,6 +102,11 @@ for x in $(cat /proc/cmdline); do
;;
panic=*)
panic="${x#panic=}"
+ case ${panic} in
+ *[![:digit:].]*)
+ panic=
+ ;;
+ esac
;;
quiet)
quiet=y