Viitor_upstart/etc/init/ifdown.conf

17 lines
339 B
Plaintext
Raw Normal View History

description "Shutdown all network interfaces without Loopback"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on stopping udev
console output
script
echo "Stopping network"
for IF in `ls -d /sys/class/net/*[^lo]`; do
DEVNAME=`basename $IF`
/sbin/if_down $DEVNAME
done
end script