#!/bin/sh
#
# network       Bring up/down networking
#

# Source function library.
. /etc/rc.d/init.d/functions

. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# See how we were called.
case "$1" in
  start)
        for i in /etc/sysconfig/network-scripts/ifup-*; do
                $i boot
        done
        touch /var/lock/subsys/network
        ;;
  stop)
        for i in /etc/sysconfig/network-scripts/ifdown-*; do
                $i boot
        done
        rm -f /var/lock/subsys/network
        ;;
  *)
        echo "Usage: network {start|stop}"
        exit 1
esac

exit 0
