Subject: Re: Regular expression
To: iware <dkwok@iware.com.au>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 05/28/2002 13:47:00
In message <001a01c2063c$191360e0$e302a8c0@iware.com.au>, "iware" writes:
>My system is NetBSD-1.5.2. I have Compaq Wavelan card. I am trying to
>automatic the encryption setup when the system is reboot. My encrypted
>passphase is `'thisisfine'. This is what I do in the /etc/ifconfig.wi0 file
>
>!/sbin/wiconfig wi0 -k "\`\'thisisfine\'" -v1 -T1 -e1
>
>this does not work. Error messages saying bad value.
>
>However it works. If I do it in sh like this:
>
>sh# key="\`\'thisisfine\'"
>sh# wiconfig wi0 -k $key -v1 -T1 -e1
>
>Eventually, I tried this and it works:
>
>sh# wiconfig wi0 -k "\\`'thisisfine'" -v1 -T1 -e1
>
>Can anyone enlighten me on this?
>
>

Try just using the nwkey argument to ifconfig in ifconfig.wi0:

nwkey `'thisisfine'

rather than using the ! escape.

		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com ("Firewalls" book)