#!/bin/sh

# uplo, ifconfig, ping and grep need to be installed

for i in /bin/uplo /sbin/ifconfig /bin/grep /bin/ping
do
        if [ ! -x $i ] ; then
                mt_ignored "This test needs $i, ignoring the test"
                mt_end
        fi
done
if ifconfig | grep 127.0.0.1
then
        mt_success "interface 'lo' is up"
else
        mt_failed "interface 'lo' is not up"
fi

if ping -c 1 127.0.0.1 
then
        mt_success "127.0.0.1 can be pinged"
else
        mt_failed "127.0.0.1 can not be pinged"
fi


