Browse Source

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>
Richard Purdie 3 tháng trước cách đây
mục cha
commit
dc4eeab72c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      meta/recipes-core/udev/udev-extraconf/network.sh

+ 1 - 1
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