From: Lukas Nykryn Date: Tue, 21 May 2019 15:58:38 +0000 (+0200) Subject: net-lib: strstr is not for globs X-Git-Tag: 050~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2616b526857d965c9068d6f1cf48f952411c8ad;p=thirdparty%2Fdracut.git net-lib: strstr is not for globs --- diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh index 8596cd816..e6a9f8e5a 100755 --- a/modules.d/40network/net-lib.sh +++ b/modules.d/40network/net-lib.sh @@ -463,7 +463,7 @@ ip_to_var() { # ip= means anaconda-style static config argument cluster autoconf="$1" - if strstr "$autoconf" "*.*.*.*"; then + if strglob "$autoconf" "*.*.*.*"; then # ip= means anaconda-style static config argument cluster: # ip= gateway= netmask= hostname= mtu= # ksdevice={link|bootif|ibft||}