1 2 3 4 5 6 7 8 9 10 11
#! /bin/sh IFUP=/sbin/ifup echo -n "Network interfaces:" if ${IFUP} -a > /dev/null 2> /dev/null; then echo " done" else echo " failed" exit 1 fi