forked from spinesystemspublic/documentation
16 lines
554 B
Bash
16 lines
554 B
Bash
#!/bin/sh
|
|
# eth2, bond0, or whatever
|
|
IFNAME=""
|
|
|
|
cat /etc/accel-ppp.conf | grep "^interface=" | awk -F ',' '{ print $1; }' | awk -F '=' '{ print $2; }' | awk -F '.' '{ print $2; }' | while read VLANID; do
|
|
echo Adding VLAN $VLANID
|
|
ip link add link ${IFNAME} name ${IFNAME}.$VLANID type vlan id $VLANID
|
|
ip link set dev ${IFNAME}.$VLANID up
|
|
done
|
|
|
|
cat /etc/accel-ppp.conf | grep "^interface=" | awk -F '=' '{ print $2; }' | while read IFACCEL; do
|
|
# add to accel live
|
|
echo Adding to ACCEL ${IFACCEL}
|
|
accel-cmd "pppoe interface add ${IFACCEL}"
|
|
done
|