Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo ==== Proxmox Network-tap-ssh RESTART
- brctl show | grep 'vmbr' | awk '{print $1}' | while read line
- do
- >$line
- brctl show $line | egrep -v 'bridge name|vmbr' | awk {'print $1'} >> $line
- done
- /etc/init.d/networking stop && /etc/init.d/networking start
- ls |grep vmbr | while read line
- do
- input="$line"
- while IFS=',' read -r f1 f2 f3 f4 f5 f6 f7 f8 f9 f10
- do
- ip link set dev $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 master "$input"
- done < "$input"
- done
Advertisement
Add Comment
Please, Sign In to add comment