]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
udev-extraconf: Switch from ifconfig to ip
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Feb 2025 10:31:15 +0000 (10:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Feb 2025 22:54:47 +0000 (22:54 +0000)
ifconfig is obsolete, drop the call and replace with ip instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev-extraconf/network.sh

index ace38808cd5bfc8bf52544ae306a0b1c089fe74c..500e60ae61c9d90a7b4cf14a42c9cc1eb3b6393a 100644 (file)
@@ -11,7 +11,7 @@ export PATH
 if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then
   case $ACTION in
     add)
-       ifconfig | grep -q "^$INTERFACE" || ifup $INTERFACE
+       ip addr show dev "$INTERFACE" up | grep -q "$INTERFACE" || ifup $INTERFACE
        ;;
     remove)
        ifdown $INTERFACE