aboutsummaryrefslogtreecommitdiff
path: root/target/device/AMD/DBAu1500/target_skeleton/etc/init.d/S40network
blob: d835d9c72aac4967104c96e8dd2ba66275d31abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
#
# Start the network....
#

start() {
 	echo "Starting network..."
	/sbin/ifup -a
}	
stop() {
	echo -n "Stopping network..."
	/sbin/ifdown -a
}
restart() {
	stop
	start
}	

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart|reload)
  	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?