]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
net-lib: strstr is not for globs
authorLukas Nykryn <lnykryn@redhat.com>
Tue, 21 May 2019 15:58:38 +0000 (17:58 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 14:25:33 +0000 (16:25 +0200)
modules.d/40network/net-lib.sh

index 8596cd816476a5f1750a835e65df7f814c09dd64..e6a9f8e5a808c05753350ddb28786f3b5d3b395b 100755 (executable)
@@ -463,7 +463,7 @@ ip_to_var() {
         #         ip=<ipv4-address> means anaconda-style static config argument cluster
         autoconf="$1"
 
-        if strstr "$autoconf" "*.*.*.*"; then
+        if strglob "$autoconf" "*.*.*.*"; then
             # ip=<ipv4-address> means anaconda-style static config argument cluster:
             # ip=<ip> gateway=<gw> netmask=<nm> hostname=<host> mtu=<mtu>
             # ksdevice={link|bootif|ibft|<MAC>|<ifname>}