mirror of
https://github.com/pygos/init-scripts.git
synced 2024-11-22 12:19:46 +01:00
b6c97e117c
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
8 lines
152 B
Bash
8 lines
152 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
|