From: Harald Hoyer Date: Wed, 22 Feb 2012 12:04:16 +0000 (+0100) Subject: dracut-functions.sh: turn off regexp for strstr() X-Git-Tag: 017~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43dfbeec7b6a63323810c8d53f1c00b7b1ec28a1;p=thirdparty%2Fdracut.git dracut-functions.sh: turn off regexp for strstr() --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 17ffd680c..653f401b5 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -40,7 +40,7 @@ fi } # Generic substring function. If $2 is in $1, return 0. -strstr() { [[ $1 =~ $2 ]]; } +strstr() { [ "${1#*$2*}" != "$1" ]; } # Create all subdirectories for given path without creating the last element. # $1 = path