17 lines
339 B
Plaintext
17 lines
339 B
Plaintext
|
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
|