diff options
Diffstat (limited to 'files/bin/ifcheck')
-rwxr-xr-x | files/bin/ifcheck | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/files/bin/ifcheck b/files/bin/ifcheck deleted file mode 100755 index c66f2ad..0000000 --- a/files/bin/ifcheck +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# Check if a network interface is up, fixing if needed. -# - -# Parameters -BASENAME="`basename $0`" -IFACE="$1" - -# Syntax check -if [ -z "$IFACE" ]; then - echo "usage: $BASENAME <interface>" - exit 1 -fi - -# Run -if ! LANG=C LC_ALL=C ifconfig $IFACE | grep -q "inet addr:"; then - ifup --force $IFACE -fi |