aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-02-02 21:36:04 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-02-02 21:36:04 +0000
commit658c0f403b35bd8dd3d359eaad323488af94b5dd (patch)
tree2c113d9f8c683e14d7508b8892201c1e1c92f268 /rc.d
parentda0dc16e9169686e5f64e7e9b46e6131432c3080 (diff)
downloadinitscripts-658c0f403b35bd8dd3d359eaad323488af94b5dd.tar
initscripts-658c0f403b35bd8dd3d359eaad323488af94b5dd.tar.gz
initscripts-658c0f403b35bd8dd3d359eaad323488af94b5dd.tar.bz2
initscripts-658c0f403b35bd8dd3d359eaad323488af94b5dd.tar.xz
initscripts-658c0f403b35bd8dd3d359eaad323488af94b5dd.zip
(get_numeric_dev): On second thought, write directly what we want awk to do.
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
}