From ec8a796457af31edd45c4fdb5972aa99744db6a6 Mon Sep 17 00:00:00 2001 From: Ionut Biru Date: Mon, 19 Dec 2011 19:12:05 +0200 Subject: [PATCH 2/2] Fix return condition Use show_warning than notify, fix the logic of returning the error. Signed-off-by: Ionut Biru --- src/core/libs/lib-ui-interactive.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 1c2b6bb..cd2df6f 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -864,7 +864,7 @@ interactive_runtime_network() { return 1 fi if [ -n "$GW" ]; then - ip route add default via $GW >$LOG 2>&1 || notify "Failed to setup your gateway." || return 1 + ip route add default via $GW >$LOG 2>&1 || { show_warning 'ip route problem' "Failed to setup your gateway. Check $LOG for errors."; return 1; } fi if [ -z "$PROXY_HTTP" ]; then unset http_proxy -- 1.7.8