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

Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org>
---
 meta/recipes-core/udev/udev-extraconf/network.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#211601): 
https://lists.openembedded.org/g/openembedded-core/message/211601
Mute This Topic: https://lists.openembedded.org/mt/111248594/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to