diff options
author | Jan Macku <jamacku@redhat.com> | 2020-12-17 08:31:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 08:31:14 +0100 |
commit | 4c3b3af678e353b54fa270663d7fc2fbe5681b48 (patch) | |
tree | ba20ae25e582adb83fee9712c9df94951ecc996f | |
parent | 0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f (diff) | |
download | initscripts-4c3b3af678e353b54fa270663d7fc2fbe5681b48.tar initscripts-4c3b3af678e353b54fa270663d7fc2fbe5681b48.tar.gz initscripts-4c3b3af678e353b54fa270663d7fc2fbe5681b48.tar.bz2 initscripts-4c3b3af678e353b54fa270663d7fc2fbe5681b48.tar.xz initscripts-4c3b3af678e353b54fa270663d7fc2fbe5681b48.zip |
network: fix set_link_up()
This patch fixes issue, when interface wasn't
bring up.
-rw-r--r-- | network-scripts/network-functions | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/network-scripts/network-functions b/network-scripts/network-functions index 2d4a907a..c80467ab 100644 --- a/network-scripts/network-functions +++ b/network-scripts/network-functions @@ -459,10 +459,8 @@ check_device_down () set_link_up () { - if [ "$LINKSTATUS" = down ]; then + if [ "$LINKSTATUS" != up ]; then ip link set dev $1 up >/dev/null 2>&1 - else - grep -qsx 1 /sys/class/net/$1/carrier fi } |