From: Joerg Woelke Date: Thu, 19 Aug 2010 14:46:31 +0000 (+0200) Subject: zshrc: Fix iwclient() X-Git-Tag: v0.3.84~21 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=2e451e06b33d08a352e066ff7ce3884bee30faf5;hp=b7e2161416537c0b43de6c8ebc64a6098736c150;p=grml-etc-core.git zshrc: Fix iwclient() Calling dhclient instead of aliasing it. Make awk print the right field. Acked-by: Michael Prokop --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index e17dd9e..ad5357c 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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/.