mistyped resolvconf

This commit is contained in:
Jörg Thalheim 2013-10-03 01:42:24 +02:00
parent b645d78523
commit f526a2c345
2 changed files with 4 additions and 5 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
ifconfig $INTERFACE down
printf "nameserver 10.42.16.1\ndomain vpn" | resolveconf -d "$INTERFACE.inet"
printf "nameserver 10.42.16.1\ndomain vpn" | resolvconf -d "$INTERFACE.inet"

View File

@ -1,7 +1,6 @@
#!/bin/sh
echo "add your ip to this file!"
exit 1
ifconfig $INTERFACE 10.42.1.10 netmask 255.255.255.255
ifconfig $INTERFACE 10.42.16.1 netmask 255.255.255.0
route del -net 10.42.16.0 netmask 255.255.255.0 dev $INTERFACE
route add -net 10.42.0.0 netmask 255.255.0.0 dev $INTERFACE
printf "nameserver 10.42.16.1\ndomain vpn" | resolveconf -a "$INTERFACE.inet"
printf "nameserver 10.42.16.1\ndomain vpn" | resolvconf -a "$INTERFACE.inet"