diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-18 10:31:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-20 11:57:49 +0000 |
commit | dc4eeab72cf926f721fc550f8800e383634119ed (patch) | |
tree | 9d3485ca8b5f98f1e0bb363dfdd342709bc30ef0 | |
parent | 8f69906d5ed64f2fa94ebe2f7215e5087bf1e6df (diff) | |
download | poky-dc4eeab72cf926f721fc550f8800e383634119ed.tar.gz |
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>
-rw-r--r-- | meta/recipes-core/udev/udev-extraconf/network.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/network.sh b/meta/recipes-core/udev/udev-extraconf/network.sh index ace38808cd..500e60ae61 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 | |||
11 | if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then | 11 | if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then |
12 | case $ACTION in | 12 | case $ACTION in |
13 | add) | 13 | add) |
14 | ifconfig | grep -q "^$INTERFACE" || ifup $INTERFACE | 14 | ip addr show dev "$INTERFACE" up | grep -q "$INTERFACE" || ifup $INTERFACE |
15 | ;; | 15 | ;; |
16 | remove) | 16 | remove) |
17 | ifdown $INTERFACE | 17 | ifdown $INTERFACE |