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

interfaces (just loopback for now).
This commit is contained in:
Eric Andersen 2003-06-20 20:18:25 +00:00
parent 7c9afbdbdc
commit 80e368b2b8
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,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 $?

View File

@ -0,0 +1,4 @@
# Configure Loopback
auto lo
iface lo inet loopback