diff options
Diffstat (limited to 'net-scripts/net.modules.d/ifconfig')
-rw-r--r-- | net-scripts/net.modules.d/ifconfig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net-scripts/net.modules.d/ifconfig b/net-scripts/net.modules.d/ifconfig index b769215..05ef95a 100644 --- a/net-scripts/net.modules.d/ifconfig +++ b/net-scripts/net.modules.d/ifconfig @@ -42,7 +42,12 @@ ifconfig_check_installed() { ifconfig_exists() { local e=$( ifconfig -a | grep -o "^$1" ) report="${2:-false}" [[ -n ${e} ]] && return 0 - ${report} && eerror "$1 does not exist" + + if ${report} ; then + eerror "network interface $1 does not exist" + eerror "Please verify hardware or kernel module (driver)" + fi + return 1 } |