zshrc: Fix iwclient()
authorJoerg Woelke <joewoe@fsmail.de>
Thu, 19 Aug 2010 14:46:31 +0000 (16:46 +0200)
committerFrank Terbeck <ft@grml.org>
Thu, 19 Aug 2010 19:39:23 +0000 (21:39 +0200)
Calling dhclient instead of aliasing it.
Make awk print the right field.

Acked-by: Michael Prokop <mika@grml.org>
etc/zsh/zshrc

index e17dd9e..ad5357c 100644 (file)
@@ -2986,7 +2986,7 @@ ipv6-tunnel() {
 
 # run dhclient for wireless device
 iwclient() {
-    salias dhclient "$(wavemon -d | awk '/device/{print $2}')"
+    sudo dhclient "$(wavemon -d | awk '/device/{print $3}')"
 }
 
 # spawn a minimally set up mksh - useful if you want to umount /usr/.