Root/data/platform/nanonote/scripts/services.sh

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

Archive Download this file



interactive