Commit 35038e93 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add network startup script for linux that does the delta thing.

parent 8404af03
......@@ -67,3 +67,4 @@ script-install: dir-install
$(INSTALL) -m 755 $(SRCDIR)/rc.route $(INSTALL_DIR)/rc.route
$(INSTALL) -m 644 $(SRCDIR)/gated_eth2.conf $(INSTALL_DIR)/gated_eth2.conf
$(INSTALL) -m 644 $(SRCDIR)/gated_eth4.conf $(INSTALL_DIR)/gated_eth4.conf
$(INSTALL) -m 755 $(SRCDIR)/S12testbed /etc/rc.d/rc3.d/S12testbed
#!/bin/bash
#
# testbed Do some testbed stuff,
#
# description: Installs deltas and reboots.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
exit 0
fi
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
RETVAL=0
# See how we were called.
case "$1" in
start)
if [ -r /etc/rc.d/testbed/rc.delta ]; then
echo "Doing Testbed Delta Thing ..."
/etc/rc.d/testbed/rc.delta
RETVAL=$?
fi
;;
stop)
echo "Done"
;;
status)
echo "Peachy"
;;
restart)
echo "Done"
;;
reload)
echo "Done"
;;
*)
echo "Usage: testbed {start|stop|restart|reload|status}"
exit 1
esac
exit $RETVAL
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment