1
0
Fork 0
mirror of https://github.com/pygos/init-scripts.git synced 2024-11-13 00:17:10 +01:00
init-scripts/scripts/ifdown.sh
David Oberhollenzer 021fa43244 Initial commit
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-11-05 16:11:47 +01:00

8 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