summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-08-23 09:22:54 +0200
committermaximilian attems <maks@debian.org>2006-08-23 09:22:54 +0200
commitfabe918dee7da26d177d67d4aa8fe3fd6e83e513 (patch)
tree5dee066c10e912f5328dba7de3032cd6058019dc /scripts/functions
parentd1d6763409a1260708423e0092d7bc4182275773 (diff)
- improved nfsroo parsing
- added rootdelay and rootfstype bootargs - document this changes - initrd-tools backward compatible mdadm assembe and then run mdrun - update-initramfs really checkout use_bootloader from /etc/kernel-img.conf - tighter klibc deps
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/functions b/scripts/functions
index 178ad5d..7e67771 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -224,13 +224,10 @@ parse_numeric() {
minor=${1#*:}
major=${1%:*}
;;
- [0-9][0-9][0-9])
- minor=$((0x${1#?}))
- major=$((0x${1%??}))
- ;;
*)
- minor=$((0x${1#??}))
- major=$((0x${1%??}))
+ value=$(( 0x${1} ))
+ minor=$(( ${value} % 256 ))
+ major=$(( ${value} / 256 ))
;;
esac