aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rwxr-xr-xsh/net.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/sh/net.sh b/sh/net.sh
index 33b93fcb..9922c7ab 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -394,6 +394,12 @@ start() {
fi
done
+ if ! _exists ; then
+ eerror "ERROR: interface ${IFACE} does not exist"
+ eerror "Ensure that you have loaded the correct kernel module for your hardware"
+ return 1
+ fi
+
if ! _wait_for_carrier ; then
if service_started devd ; then
ewarn "no carrier, but devd will start us when we have one"