tedit names of places - scripts - random scripts
HTML git clone git://parazyd.org/scripts.git
DIR Log
DIR Files
DIR Refs
---
DIR commit fdadfeffe1accd6a3b2cd27d1f8b50a94148ca07
DIR parent b52b934adf0622975d5a61dcf938e4f80ce1e9d2
HTML Author: parazyd <parazyd@dyne.org>
Date: Wed, 15 Jun 2016 13:49:24 +0200
edit names of places
Diffstat:
M dn | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/dn b/dn
t@@ -23,15 +23,15 @@ startd() {
case $1 in
out|o)
startd
- chattr off && echo "nameserver 127.0.0.1 # $1" > /etc/resolv.conf && chattr on
+ chattr off && echo "nameserver 127.0.0.1 # out" > /etc/resolv.conf && chattr on
exit 0;;
home|h)
stopd
- chattr off && echo "nameserver 10.0.1.1 # $1" > /etc/resolv.conf && chattr on
+ chattr off && echo "nameserver 10.0.1.1 # home" > /etc/resolv.conf && chattr on
exit 0;;
bridge)
stopd
- chattr off && echo "nameserver 172.16.17.1 # $1" > /etc/resolv.conf && chattr on
+ chattr off && echo "nameserver 172.16.17.1 # bridge" > /etc/resolv.conf && chattr on
exit 0;;
*)
echo "current set as: `awk '{print $4}' /etc/resolv.conf`"