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>
@@ -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