initial commit of a *whole bunch* of old Egressive shell scripts, used to make many people redundant.

This commit is contained in:
Dave Lane 2016-03-16 13:43:31 +13:00
commit 43e0f5b59e
329 changed files with 31937 additions and 0 deletions

12
egroutes/egroutes Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
# Workaround for Xen - not sure if this is best practice . . .
# rob@egressive.com 20061123
# rob@egressive.com 20061206 moved this virtual machine over to Fattony - edited some of the routes . . .
[ "$IFACE" != "lo" ] || exit 0
#/sbin/route add -net 192.168.0.0 netmask 255.255.0.0 gw
#/sbin/route add -net 10.128.0.0 netmask 255.255.0.0 gw 172.16.97.2
#/sbin/route add -net 172.16.98.0 netmask 255.255.255.0 gw 172.16.97.2
#/sbin/route add -net 172.16.99.0 netmask 255.255.255.0 gw 172.16.97.2

23
egroutes/egroutes-otto Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
#
# Written by andrew@egressive.com 2008-01-09 to add the required routes on all machines on Waylon
#
# All the virtual machines on Waylon should use:
# eth0: private IP range for management
# eth1: public IP range for normal access
[ "$IFACE" = "eth0" ] || exit 0
# The route for the current (old) smithers
/sbin/route add -net 202.6.116.0 netmask 255.255.255.248 dev eth0
# The route for the 202.6.116.128/28 range
if ! /sbin/route -n | grep 202.6.116.128 > /dev/null ; then
/sbin/route add -net 202.6.116.128 netmask 255.255.255.240 dev eth0
fi
# The route for the 202.6.117.160/27 range
if ! /sbin/route -n | grep 202.6.117.160 > /dev/null ; then
/sbin/route add -net 202.6.117.160 netmask 255.255.255.224 dev eth0
fi

23
egroutes/egroutes-waylon Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
#
# Written by andrew@egressive.com 2008-01-09 to add the required routes on all machines on Waylon
#
# All the virtual machines on Waylon should use:
# eth0: private IP range for management
# eth1: public IP range for normal access
[ "$IFACE" = "eth1" ] || exit 0
# The route for the current (old) smithers
/sbin/route add -net 202.6.116.0 netmask 255.255.255.248 dev eth1
# The route for the 202.6.116.128/28 range
if ! /sbin/route -n | grep 202.6.116.128 > /dev/null ; then
/sbin/route add -net 202.6.116.128 netmask 255.255.255.240 dev eth1
fi
# The route for the 202.6.117.160/27 range
if ! /sbin/route -n | grep 202.6.117.160 > /dev/null ; then
/sbin/route add -net 202.6.117.160 netmask 255.255.255.224 dev eth1
fi