Commit 80e368b2 authored by Eric Andersen's avatar Eric Andersen
Browse files

Start networking on boot, and setup a default set of network

interfaces (just loopback for now).
parent 7c9afbdb
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
#!/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 $?
+4 −0
Original line number Diff line number Diff line
# Configure Loopback
auto lo
iface lo inet loopback