Nice script, thank you. It works perfectly for setting up networking and sharing the host internet connection. But dfu-utils still doesn't work.
Eildert Groeneveld wrote: > On Sunday 13 July 2008, joseph schlesinger wrote: > >> Running it as root does not work, nor does passing a --device >> parameter. I should mention that I've also tried a number of different >> linux host machines and usb ports on each. Could it be a defective phone? >> > > This is what I need to run as root and the everything works fine: > root(eno,freerunner)# cat upom > #!/bin/sh > /sbin/ifconfig usb0 192.168.0.200 netmask 255.255.255.0 > /sbin/route add -host 192.168.0.202/32 dev usb0 > > /bin/echo 1 > /proc/sys/net/ipv4/ip_forward > iptables -F > iptables -A INPUT -s 192.168.0.202 -i usb0 -d 192.168.0.200 -j ACCEPT > iptables -A INPUT -s 192.168.0.200 -i eth+ -d 192.168.0.202 -j ACCEPT > iptables -A INPUT -s 192.168.2.0/24 -i eth+ -d 192.168.0.202 -j ACCEPT > iptables -A INPUT -s 192.168.2.0/24 -i eth+ -d 192.168.2.0/24 -j ACCEPT > > iptables -A FORWARD -s 192.168.0.202 -i usb0 -d 192.168.2.0/24 -o eth+ -j > ACCEPT > iptables -A FORWARD -s 192.168.2.0/24 -i eth+ -d 192.168.0.202 -o usb0 -j > ACCEPT > > iptables -A OUTPUT -d 192.168.2.0/24 -o eth+ -j ACCEPT > iptables -A OUTPUT -d 192.168.0.202 -o usb0 -j ACCEPT > iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 > root(eno,freerunner)# > > > courtesy I-dont-remember > > Eildert > > _______________________________________________ Openmoko community mailing list [email protected] http://lists.openmoko.org/mailman/listinfo/community

