scripts

shell scripts
git clone git://git.bitsmanent.org/scripts
Log | Files | Refs | README

commit ba95c731d87ae1f69ad0161c1b7e67a6a45eca42
parent fae369bcf06292372cd2e6dde9f2a6c2d4573f3f
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sun, 17 Sep 2017 10:37:50 +0200

[iwpick] Remove DNS handling.
This is not the right place for them.

Diffstat:
Msrc/iwpick | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/iwpick b/src/iwpick @@ -2,9 +2,6 @@ # Connects to a network # Requires: wpa_supplicant, sdhcp, iwconfig -NS1=208.67.222.222 -NS2=208.67.220.220 - connect() { iface=$1 essid=$2 @@ -91,11 +88,6 @@ main() { done connect "$iface" "$essid" "$key" - - # If no DNS are set, then use our own - f=/etc/resolv.conf - t=$(grep ^[^#] $f |wc -l) - [ $t -eq 0 ] && printf "nameserver %s\nnameserver %s\n" $NS1 $NS2 >> $f } main "$@"