#!/bin/sh #---------------------------------------------------------------------------- # /etc/rc0.d/rc980.ifconfig - shut down all network interfaces # # Creation: 12.05.2002 rr # Last Update: $Id$ #---------------------------------------------------------------------------- INTERFACES=`ip link show | sed -n -e 's/^[0-9]\+:\([-[:space:]a-z0-9.]*\).*/\1/p' | sort -r` for i in $INTERFACES do case $i in # vlan-devices eth*.*) colecho "shutting down network interface $i" gn >/dev/console ip link set dev $i down ;; esac done for i in $INTERFACES do case $i in # bridge- or bonding-devices br*|bond*) colecho "shutting down network interface $i" gn >/dev/console ip link set dev $i down ;; esac done for i in $INTERFACES do case $i in eth*.*|br*|bond*) ;; # all other devices *) colecho "shutting down network interface $i" gn >/dev/console ip link set dev $i down ;; esac done