From 2e451e06b33d08a352e066ff7ce3884bee30faf5 Mon Sep 17 00:00:00 2001 From: Joerg Woelke Date: Thu, 19 Aug 2010 16:46:31 +0200 Subject: [PATCH] zshrc: Fix iwclient() Calling dhclient instead of aliasing it. Make awk print the right field. Acked-by: Michael Prokop --- etc/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/. -- 2.1.4