Root/
| 1 | #!/bin/bash |
| 2 | # $1 = ip |
| 3 | # $2 = inet |
| 4 | # $3 = samba |
| 5 | # $4 = web |
| 6 | insmod net2272 |
| 7 | insmod g_ether |
| 8 | ifconfig usb0 $1 netmask 255.255.255.0 up |
| 9 | # route add default gw $defaultgw |
| 10 | if [ $2 = "on" ]; then /etc/init.d/inet start; fi |
| 11 | if [ $3 = "on" ]; then smbd; fi |
| 12 | if [ $4 = "on" ]; then thttpd; fi |
| 13 |
Branches:
install_locations
master
opkrun
packages
