aboutsummaryrefslogtreecommitdiff
path: root/scripts/ifdown.sh
blob: 02156cbedd1ff4c87f8479460591855b8859a2a7 (plain)
1
2
3
4
5
6
7
8
#!/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