From a1753c140be6138a2313966ba3f0efec5497417d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 28 Apr 2012 12:10:32 -0400 Subject: init_functions: remove non-devtmpfs case devtmpfs is no longer supported elsewhere, so this is essentially dead code. Signed-off-by: Dave Reisner --- init_functions | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/init_functions b/init_functions index 0654020..60532d2 100644 --- a/init_functions +++ b/init_functions @@ -179,19 +179,15 @@ resolve_device() { [ -n "$dev" ] && device=$dev case $device in + # path to kernel named block device /dev/*) if poll_device "$device" "$rootdelay"; then echo "$device" return 0 fi - - # block device, e.g. (/dev/sda1) -> /sys/class/block/sda1/dev - if [ -e /sys/class/block/${device:5}/dev ]; then - IFS=':' read major minor < "/sys/class/block/${device:5}/dev" - fi ;; + # hex encoded major/minor, such as from LILO [0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]|[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]) - # hex encoded major/minor, such as from LILO major=$(( 0x0$device >> 8 )) minor=$(( 0x0$device & 0xff )) ;; -- cgit v1.2.3-24-g4f1b