aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index a5a022d8..9ef25fe0 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -483,7 +483,7 @@ get_numeric_dev() {
if [ "$1" == "hex" ]; then
fmt="%x:%x"
fi
- ls -l "$2" | awk '{ split($5 $6, a, ","); printf("'"$fmt"'", a[1], a[2]); }'
+ ls -l "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}