Subject: Regular expression
To: None <netbsd-users@netbsd.org>
From: iware <dkwok@iware.com.au>
List: netbsd-users
Date: 05/28/2002 21:37:50
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?


David Kwok
LLK Pty Ltd

PGP key id 0x428084d4
key server: gpg.nic.ad.jp
finger print:A955 F46A 3565 9B09 F514 5B5F 7137 C9B6 4280 84D4


David Kwok
LLK Pty Ltd

PGP key id 0x428084d4
key server: gpg.nic.ad.jp
finger print:A955 F46A 3565 9B09 F514 5B5F 7137 C9B6 4280 84D4