mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 12:32:13 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user