From dd845dcbf5d1846925483b24cc0076e6c1e4997d Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 31 Aug 2006 21:03:16 +0000 Subject: - "<<<" doesn't work without a read-write filesystem. No, I'm serious. --- rc.d/init.d/functions | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rc.d/init.d') 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" -- cgit v1.2.1