On Wed, Mar 24, 2010 at 01:29:30PM +0100, David Paleino wrote: Hi,
> To the wired scripts, "wired" is passed (three times, just for compatibility > with the wireless ones, even though I disagree with upstream on this, but > have > found no sufficient motivation to patch it), i.e. if you put "netconfig" as a > pre/post connection/disconnection script, it will be called as: > > $ netconfig wired wired wired > > To the wireless scripts, WICD passes "wireless", the ESSID and the BSSID, > i.e.: > > $ netconfig wireless my-wlan 00:11:22:33:44:55 I'm afraid that's not quite good enough (it's only good enough for a workaround). You see, my netconfig script does several things like this one: #!/bin/zsh cd /etc && { echo Fixing resolv.conf... [[ -L resolv.conf ]] && [[ -e resolv.conf-$1 ]] && { rm resolv.conf ln -s resolv.conf-$1 resolv.conf } } "$1" is supposed to be the same for a specific set of wireless networks and different for others. I could of course make the script more complex (add a key lookup), or have more resolv.conf-* files that are identical; but I think the best would be to be able to pass a custom command line argument to the netconfig script from wicd. I'm fine with it being the fourth argument. > Maybe we could mangle this bug appropriately to make it a documentation-bug. Not just yet. :) -- Andras Korn <korn at elan.rulez.org> - <http://chardonnay.math.bme.hu/~korn/> Never agree with me, it shakes my self-confidence. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org