#!/bin/sh # startadhoc /sbin/stop PmWiFiService modprobe ar6000 ifconfig eth0 up iwconfig eth0 mode ad-hoc essid "name of your network" power off dhclient eth0 echo "nameserver 8.8.8.8" >> /etc/resolv.conf
#!/bin/sh # stopadhoc restore default resolv.com echo "nameserver 127.0.0.1" > /etc/resolv.conf /sbin/start PmWiFiService