udev-extraconf: Switch from ifconfig to ip

ifconfig is obsolete, drop the call and replace with ip instead.

(From OE-Core rev: e18e29728ace57d7ef1409c3c13df9e1857af3ac)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2025-02-18 10:31:15 +00:00
parent 8f69906d5e
commit dc4eeab72c

View 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