mirror of
https://github.com/pygos/init-scripts.git
synced 2024-11-14 00:47:10 +01:00
9 lines
153 B
Bash
9 lines
153 B
Bash
|
#!/bin/sh
|
||
|
for IFPATH in /sys/class/net/*; do
|
||
|
[ "$IFPATH" == "/sys/class/net/lo" ] && continue
|
||
|
|
||
|
IF=`basename $IFPATH`
|
||
|
|
||
|
ip link set dev "$IF" down
|
||
|
done
|