zshrc: Fix iwclient()
[grml-etc-core.git] / 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/.