diff options
author | Peter Jones <pjones@redhat.com> | 2006-08-31 21:03:16 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-08-31 21:03:16 +0000 |
commit | dd845dcbf5d1846925483b24cc0076e6c1e4997d (patch) | |
tree | da29cf100eb4a1f9557c22535b59b3f154d33568 /rc.d | |
parent | 5be001f1b5ba29ccc3391f6e5e2f0361b631b127 (diff) | |
download | initscripts-dd845dcbf5d1846925483b24cc0076e6c1e4997d.tar initscripts-dd845dcbf5d1846925483b24cc0076e6c1e4997d.tar.gz initscripts-dd845dcbf5d1846925483b24cc0076e6c1e4997d.tar.bz2 initscripts-dd845dcbf5d1846925483b24cc0076e6c1e4997d.tar.xz initscripts-dd845dcbf5d1846925483b24cc0076e6c1e4997d.zip |
- "<<<" doesn't work without a read-write filesystem. No, I'm serious.
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/functions | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 8847f792..9c373207 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -568,12 +568,11 @@ resolve_dm_name() { for x in $line ; do if [[ "$x" =~ "^/dev/" ]] ; then majmin=$(get_numeric_dev dec $x) - line=$(sed -e "s,$x\( \|$\),$majmin\1,g" <<< "$line") + line=$(echo "$line" | sed -e "s,$x\( \|$\),$majmin\1,g") fi done - line=$(sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' \ - -e 's/ core [12] [[:digit:]]\+ / core [12] [[:digit:]]\\+ /' \ - <<< "$line") + line=$(echo "$line" | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' \ + -e 's/ core [12] [[:digit:]]\+ / core [12] [[:digit:]]\\+ /') /sbin/dmsetup table | \ sed -n -e "s/.*\(no block devices found\|No devices found\).*//" \ -e "s/\(^[^:]\+\): $line\( \+$\|$\)/\1/p" |