diff options
author | euer <root@euer.krebsco.de> | 2012-12-22 03:08:01 +0100 |
---|---|---|
committer | euer <root@euer.krebsco.de> | 2012-12-22 03:08:01 +0100 |
commit | 056ec241c0fbeedb6fbda9897a9c0042ce0eb739 (patch) | |
tree | 0230f2d7d6b7ffdcb4291c84eaffa46b50083fd2 /retiolum/openwrt/tinc-up | |
parent | 5176621efd96a793a5d67fcfc4136cc5301405d2 (diff) | |
parent | 164ff3e48946747fef3b61c4f7dbc143693192c1 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'retiolum/openwrt/tinc-up')
-rwxr-xr-x | retiolum/openwrt/tinc-up | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/retiolum/openwrt/tinc-up b/retiolum/openwrt/tinc-up deleted file mode 100755 index 3b8bb978..00000000 --- a/retiolum/openwrt/tinc-up +++ /dev/null @@ -1,19 +0,0 @@ -# source: krebscode/painload/retiolum/scripts/tinc_setup/tinc-up - -dirname="`dirname "$0"`" - -conf=$dirname/tinc.conf - -name=`sed -n 's|^ *Name *= *\([^ ]*\) *$|\1|p' $conf` - -host=$dirname/hosts/$name - -addr4=`sed -n 's|^ *Subnet *= *\(10[.][^ ]*\) *$|\1|p' $host` -if [ "$addr4" != '' ];then - ifconfig $INTERFACE $addr4 - route add -net 10.243.0.0 netmask 255.255.0.0 dev retiolum -else - addr4=`sed -n 's|^ *Subnet *= *\(42[.][^ ]*\) *$|\1|p' $host` - ifconfig $INTERFACE $addr4 - route add -net 42.0.0.0 netmask 255.0.0.0 dev retiolum -fi |