From 7e86677bbb98ebc5cd4b17b5e620b7bd16da4657 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 21 Jul 2006 15:29:45 +0000 Subject: deref symlinks in get_numeric_dev --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d/functions') diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 5366b326..19a86c16 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -552,7 +552,7 @@ get_numeric_dev() { if [ "$1" == "hex" ]; then fmt="%x:%x" fi - ls -l "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }' + ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }' ) 2>/dev/null } -- cgit v1.2.1