aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifup-ippp
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2020-12-15 10:07:50 +0100
committerGitHub <noreply@github.com>2020-12-15 10:07:50 +0100
commite0c58b190523421347021029cd4516c7fc5db0bc (patch)
tree7db22e00645da1958f391af60c91ab2324b3cd3f /network-scripts/ifup-ippp
parent748122158d6b7007a49b38a78f22a749f1d2786d (diff)
downloadinitscripts-e0c58b190523421347021029cd4516c7fc5db0bc.tar
initscripts-e0c58b190523421347021029cd4516c7fc5db0bc.tar.gz
initscripts-e0c58b190523421347021029cd4516c7fc5db0bc.tar.bz2
initscripts-e0c58b190523421347021029cd4516c7fc5db0bc.tar.xz
initscripts-e0c58b190523421347021029cd4516c7fc5db0bc.zip
network: add option to keep the link down
Some interfaces like Open vSwitch bridges using the userspace datapath, needs the link to be kept down to avoid issues. Add a LINKSTATUS=[down|up] ifcfg parameter to add this functionality. If not specified, the link will default to up as before. Patch provided by Matteo Croce mcroce@redhat.com Resolves: #1555001
Diffstat (limited to 'network-scripts/ifup-ippp')
-rwxr-xr-xnetwork-scripts/ifup-ippp2
1 files changed, 1 insertions, 1 deletions
diff --git a/network-scripts/ifup-ippp b/network-scripts/ifup-ippp
index e1f08a79..47ffc87b 100755
--- a/network-scripts/ifup-ippp
+++ b/network-scripts/ifup-ippp
@@ -342,7 +342,7 @@ function addprovider()
# activate ISDN device
/usr/bin/logger -p daemon.info -t ifup-ippp "ip addr add $IPADDR peer $GATEWAY${pfx:/$pfx} dev $DEVICE"
ip addr add $IPADDR peer $GATEWAY${pfx:/$pfx} dev $DEVICE
- ip link set dev $DEVICE up
+ set_link_up $DEVICE
if [ "$ENCAP" = "syncppp" ]; then
# start ipppd daemon