diff options
author | Robby Workman <rworkman@slackware.com> | 2017-01-06 15:29:32 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-07-11 16:58:52 -0500 |
commit | a6dc0c4b0aea51718147ad307c8b5ed101402d17 (patch) | |
tree | bbbe50b3e33647788cd39e431f4d00c40575b120 /rc.inet1 | |
parent | f90c679e3ac26bb5047611576850e3253a6c18e2 (diff) | |
download | slacknetsetup-a6dc0c4b0aea51718147ad307c8b5ed101402d17.tar.xz |
rc.inet1: Partially migrate bridge setup code
TODO: brctl --> ip link add name ${br_name} type bridge
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]} } |