scripts

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

commit b784e09f5994c6ad104d9d2c7f0c2321fe322d39
parent 3bfa15b40fe65de8cce10b5baef954d4f1c7102e
Author: clamiax <smoppy@gmail.com>
Date:   Mon, 27 Apr 2015 10:23:16 +0200

iwpick switch to sdhcp

Diffstat:
MREADME.md | 2+-
Miwpick | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md @@ -4,7 +4,7 @@ Useful shell scripts. iwpick ------ -Connects to a network. Authentication is not mandatory and only WPA2 is supported at the moment. It will works with no pain on any Linux system equipped with iwconfig, dhclient and wpa_supplicant. Just run: +Connects to a network. Authentication is not mandatory and only WPA2 is supported at the moment. It will works with no pain on any Linux system equipped with iwconfig, sdhcp and wpa_supplicant. Just run: $ sudo iwpick -e MyWirelessNetwork -k MyWPA2key diff --git a/iwpick b/iwpick @@ -1,6 +1,6 @@ #!/bin/bash # Connects to a network -# Requires: wpa_supplicant, dhclient, iwconfig +# Requires: wpa_supplicant, sdhcp, iwconfig connect() { iface=$1 @@ -25,7 +25,7 @@ connect() { rm $tmp fi - dhclient $iface + sdhcp -d $iface >/dev/null } die() { @@ -78,7 +78,7 @@ main() { [ -z "$essid" ] && die "alias '${alias}' not found" - apps=(wpa_supplicant dhclient) + apps=(wpa_supplicant sdhcp) for a in ${apps[@]} do pkill -f "$a"