]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/dhclient-script.sh: remove bashism
authorHarald Hoyer <harald@redhat.com>
Wed, 8 Jul 2015 06:49:02 +0000 (08:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 8 Jul 2015 06:49:02 +0000 (08:49 +0200)
modules.d/40network/dhclient-script.sh

index 2550cafeda33f7fbd7d7a06dda30cd748c8669e8..c75ac890f90121e8a6e7d95fc28479a4b1d0403b 100755 (executable)
@@ -47,7 +47,7 @@ setup_interface() {
         ${preferred_lft:+preferred_lft ${preferred_lft}}
 
     if [ -n "$gw" ] ; then
-        if [ "$mask" == "255.255.255.255" ] ; then
+        if [ "$mask" = "255.255.255.255" ] ; then
             # point-to-point connection => set explicit route to gateway
             echo ip route add $gw dev $netif > /tmp/net.$netif.gw
         fi