1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-17 00:07:10 +02:00
gmenu2x/data/platform/nanonote/scripts/services.sh

13 lines
280 B
Bash
Raw Normal View History

#!/bin/bash
# $1 = ip
# $2 = inet
# $3 = samba
# $4 = web
insmod net2272
insmod g_ether
ifconfig usb0 $1 netmask 255.255.255.0 up
# route add default gw $defaultgw
if [ $2 = "on" ]; then /etc/init.d/inet start; fi
if [ $3 = "on" ]; then smbd; fi
if [ $4 = "on" ]; then thttpd; fi