Source

bin / xds_net

Full commit
#!/bin/bash
ip link set dev eth0 up

ip link add link eth0  name vlan1_local  type vlan id 1
ip addr add 10.0.1.1/24 dev vlan1_local
ip link set dev vlan1_local up

#modprobe bridge
#modprobe tun
#
#brctl addbr br0
#
#TAP=$(tunctl -b -u root)
#ip link set dev "$TAP" up
#ip link set dev "$TAP" promisc on
#brctl addif br0 "$TAP"

ip link add link eth0  name vlan2_prod   type vlan id 2
ip link set dev vlan2_prod up
#brctl addif br0 vlan2_prod
#dhcpcd br0
dhcpcd vlan2_prod

ip link add link eth0  name vlan3_test   type vlan id 3
dhcpcd vlan3_test

ip link add link eth0  name vlan4_arrays type vlan id 4
ip addr add 10.0.4.1/24 dev vlan4_arrays
ip link set dev vlan4_arrays up

rc.d start dnsmasq

day=$(date "+%u")
hour=$(date "+%-H")
if ((day > 1 && day < 6 && hour < 11)); then # tuesday - friday before 11
	echo "scheduling scrum reminder"
	at 11:00 <<- EOF
		DISPLAY=":0" xmessage -nearmouse "scrum time"
	EOF
fi