Ed Kapitein <[email protected]> writes: > I hope it saves someone 5 minutes of scripting :-)
Why all the sleeps? ;-) My script for sharing gprs connection with wlan: #!/bin/sh om wifi power 1 sleep 4 sudo ifconfig wlan down sudo iwconfig wlan mode ad-hoc sudo iwconfig wlan channel 5 sudo iwconfig wlan essid "openmoko" sudo ifconfig wlan up sudo ip addr add 10.4.2.1/24 dev wlan sudo /etc/init.d/udhcpd start sudo /etc/init.d/bind9 start # sudo /etc/init.d/ircd-hybrid start # sudo /etc/init.d/thttpd start sudo iptables -t nat -A POSTROUTING -s 10.4.2.0/24 -j MASQUERADE sudo sh -c 'echo 1 > /proc/sys/net/ipv4/ip_forward' _______________________________________________ Openmoko community mailing list [email protected] http://lists.openmoko.org/mailman/listinfo/community

