You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
209 B
8 lines
209 B
#!/bin/sh
|
|
|
|
if [ -n "`cat /proc/net/dev | sed -e "s/lo://" | grep "[a-z0-9]*:[ ]*[0-9]*"`" ] ; then
|
|
if [ -z "`grep -v '^Iface' /proc/net/route | grep '^eth[0-9]'`" ]; then
|
|
exit 0
|
|
fi
|
|
fi
|
|
exit 1
|
|
|