aboutsummaryrefslogtreecommitdiff
path: root/sh/net.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-17 21:38:58 +0000
committerRoy Marples <roy@marples.name>2007-09-17 21:38:58 +0000
commit47f21d06a07f7c1225886e50a05a06475daeedf2 (patch)
tree76c955734879ff526a3cdb39711d8c12dc12962c /sh/net.sh
parentfac4de2b4694fb933e7b9e7aa6efdc111d427b4e (diff)
Fix fallback configurations
Diffstat (limited to 'sh/net.sh')
-rwxr-xr-xsh/net.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/sh/net.sh b/sh/net.sh
index 4a47c4e7..3be6a421 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -360,7 +360,7 @@ _load_config() {
eval config_${config_index}=
config_index=0
- eval $(_get_array fallback_${IFVAR})
+ eval "$(_get_array fallback_${IFVAR})"
for cmd in "$@" ; do
eval fallback_${config_index}="'${cmd}'"
config_index=$((${config_index} + 1))
@@ -459,11 +459,13 @@ start() {
if eend $? ; then
oneworked=true
else
- eval config=\$fallback_${IFVAR}
+ eval config=\$fallback_${config_index}
if [ -n "${config}" ] ; then
- einfo "Trying fallback configuration"
- eval config_${config_index}=\$fallback_${IFVAR}
- eval fallback_${config_index}=
+ eoutdent
+ ewarn "Trying fallback configuration ${config}"
+ eindent
+ eval config_${config_index}=\$config
+ unset fallback_${config_index}
config_index=$((${config_index} - 1))
fi
fi