From: Richard Purdie Date: Tue, 18 Feb 2025 10:31:15 +0000 (+0000) Subject: udev-extraconf: Switch from ifconfig to ip X-Git-Tag: yocto-5.2~436 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e18e29728ace57d7ef1409c3c13df9e1857af3ac;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git udev-extraconf: Switch from ifconfig to ip ifconfig is obsolete, drop the call and replace with ip instead. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/udev/udev-extraconf/network.sh b/meta/recipes-core/udev/udev-extraconf/network.sh index ace38808cd5..500e60ae61c 100644 --- a/meta/recipes-core/udev/udev-extraconf/network.sh +++ b/meta/recipes-core/udev/udev-extraconf/network.sh @@ -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