From c1fd9aa6213613fed140da7fe68c67a91f478509 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Wed, 2 Apr 2008 22:19:59 +0200 Subject: configure_networking(): guard against unset "${DEVICE}" found on testing that configure_networking() shouldn't make assumption that ${DEVICE} is really already set. this still allows to bail out if device is passed and set. --- scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/functions') diff --git a/scripts/functions b/scripts/functions index 588e324..d36884c 100644 --- a/scripts/functions +++ b/scripts/functions @@ -273,7 +273,7 @@ parse_numeric() { configure_networking() { # networking already configured thus bail out - [ -e /tmp/net-${DEVICE}.conf ] && return 0 + [ -n "${DEVICE}" ] && [ -e /tmp/net-"${DEVICE}".conf ] && return 0 # support ip options see linux sources Documentation/nfsroot.txt case ${IPOPTS} in -- cgit v1.2.3