IN_BOOT=1 ${NETWORK_SCRIPTS}/brup ${interface}
done
+ touch /var/lock/subsys/network
;;
stop)
IN_BOOT=1 ${NETWORK_SCRIPTS}/brdown ${interface}
done
+ rm -f /var/lock/subsys/network
;;
restart)
prevlevel="N"
fi
+if [ "${runlevel}" = "S" ]; then
+ touch /dev/.in_sysinit
+fi
+
# Mount a tmpfs to store boot accounting information
if [ "${runlevel}" = "S" -a "${TEMPFS_MOUNT}" != "" ]; then
mount -n -t tmpfs tmpfs "${TEMPFS_MOUNT}" -o mode=600
fi
done
+rm -f /dev/.in_sysinit
+
# Strip apply time to the logs, strip out any color codes and dump
# the log to /var/log/boot.log
if [ -f "${TEMPFS_MOUNT}/.bootlog" -a "${runlevel}" != "S" ]; then
case $ACTION in
add|register)
+ # Don't do anything if the network is stopped
+ if [ -f /dev/.in_sysinit ] ; then
+ exit 0
+ fi
+ if [ ! -f /var/lock/subsys/network ]; then
+ exit 0
+ fi
case $INTERFACE in
# interfaces that are brought up as a part of configuration
ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*)