diff options
author | maximilian attems <maks@debian.org> | 2006-03-26 21:09:50 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-03-26 21:09:50 +0200 |
commit | 4b5cc6ce7567a7075802dd8c3e47dd7cf8e84627 (patch) | |
tree | abada5fda5d760901b8c12e2af501e937d6a8b1d /scripts/functions | |
parent | 0318bb9b8e61f0a4c9d89ec678a75f6f7ea8c5d5 (diff) |
fix copyright
module-init-tools dep
gdth
lilo minor parsing fixes
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 05b7779..8cf6ddc 100644 --- a/scripts/functions +++ b/scripts/functions @@ -189,6 +189,7 @@ load_modules() fi } +# lilo compatibility parse_numeric() { case $1 in "") @@ -201,10 +202,14 @@ parse_numeric() { minor=${1#*:} major=${1%:*} ;; - *) + [0-9][0-9][0-9]) minor=$((0x${1#?})) major=$((0x${1%??})) ;; + *) + minor=$((0x${1#??})) + major=$((0x${1%??})) + ;; esac mknod /dev/root b ${major} ${minor} |