scripts

random scripts
git clone git://parazyd.org/scripts.git
Log | Files | Refs

commit fdadfeffe1accd6a3b2cd27d1f8b50a94148ca07
parent b52b934adf0622975d5a61dcf938e4f80ce1e9d2
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 15 Jun 2016 13:49:24 +0200

edit names of places

Diffstat:
Mdn | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dn b/dn @@ -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`"