1
0
Fork 0
mirror of https://github.com/pygos/init-scripts.git synced 2024-05-19 12:16:15 +02:00
init-scripts/scripts/ifdown.sh

9 lines
153 B
Bash
Raw Normal View History

#!/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