diff options
author | Miloslav Trmac <mitr@volny.cz> | 2006-02-02 21:36:04 +0000 |
---|---|---|
committer | Miloslav Trmac <mitr@volny.cz> | 2006-02-02 21:36:04 +0000 |
commit | 658c0f403b35bd8dd3d359eaad323488af94b5dd (patch) | |
tree | 2c113d9f8c683e14d7508b8892201c1e1c92f268 /rc.d/init.d/functions | |
parent | da0dc16e9169686e5f64e7e9b46e6131432c3080 (diff) | |
download | initscripts-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/init.d/functions')
-rwxr-xr-x | rc.d/init.d/functions | 2 |
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 } |