tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: connecting to a phone running android-wifi-tether

On 19/01/2010 16:27, David Brownlee wrote:
I have on my HTC phone to provide a
wifi hotspot for my laptop and thought I'd give it a spin with NetBSD.
I'm using the following scrip which works fine, but I can't seem to
get it working under wpa_supplicant. Does anyone have any thoughts?

/etc/rc.d/wpa_supplicant stop
/etc/rc.d/dhcpcd stop
ifconfig ath0 ssid absTether mediaopt adhoc
while ! ifconfig ath0 | grep 'status: active' ; do
     echo -n .
     sleep 1
/etc/rc.d/dhcpcd start

dhcpcd handles link management fine, so no need to monitor ifconfig output and start it :)



Home | Main Index | Thread Index | Old Index