Make recent addition conform to POSIX
authorSebastian Pipping <sebastian@pipping.org>
Mon, 11 Jun 2012 17:33:05 +0000 (19:33 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 11 Jun 2012 17:33:05 +0000 (19:33 +0200)
defaults/initrd.scripts

index fd9ac27350afa9a6eb1c5902637ec35d21192046..f05a746cf70fc1af08a64a20a7777dee11e5ba3d 100755 (executable)
@@ -756,7 +756,7 @@ openLUKS() {
        case $1 in
                root)
                        local TYPE=ROOT
-                       [ -n "${REAL_ROOT}" ] && local LUKS_NAME="$(echo "$REAL_ROOT" | sed -e 's/.*\///')"
+                       [ -n "${REAL_ROOT}" ] && local LUKS_NAME="`echo "${REAL_ROOT}" | sed -e 's|.*/||'`"
                        ;;
                swap)
                        local TYPE=SWAP