summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-01-06 15:29:32 -0600
committerRobby Workman <rworkman@slackware.com>2017-07-11 16:58:52 -0500
commita6dc0c4b0aea51718147ad307c8b5ed101402d17 (patch)
treebbbe50b3e33647788cd39e431f4d00c40575b120
parentf90c679e3ac26bb5047611576850e3253a6c18e2 (diff)
downloadslacknetsetup-a6dc0c4b0aea51718147ad307c8b5ed101402d17.tar.xz
rc.inet1: Partially migrate bridge setup code
TODO: brctl --> ip link add name ${br_name} type bridge
-rw-r--r--rc.inet16
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.inet1 b/rc.inet1
index 4377b58..5b3085c 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -78,8 +78,8 @@ br_open() {
# argument is 'i' - the position of this interface in the IFNAME array.
/sbin/brctl addbr ${IFNAME[$1]}
for BRIF in $(echo ${BRNICS[$1]}); do
- /sbin/ifconfig $BRIF down
- /sbin/ifconfig $BRIF 0.0.0.0 promisc up
+ /sbin/ip link set $BRIF down
+ /sbin/ip address add 0.0.0.0 dev $BRIF
/sbin/brctl addif ${IFNAME[$1]} $BRIF
done
}
@@ -92,7 +92,7 @@ br_close() {
do
/sbin/brctl delif ${IFNAME[$1]} $BRIF
done
- /sbin/ifconfig ${IFNAME[$1]} down
+ /sbin/ip link set ${IFNAME[$1]} down
/sbin/brctl delbr ${IFNAME[$1]}
}