summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2008-04-02 22:19:59 +0200
committermaximilian attems <max@stro.at>2008-04-02 22:19:59 +0200
commitc1fd9aa6213613fed140da7fe68c67a91f478509 (patch)
tree7b853300d5d4b603b73b9725e29a85bbe94f6389 /scripts/functions
parent5dfdae9ae274c271943c9bee9ddc3db7fd255695 (diff)
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.
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions2
1 files changed, 1 insertions, 1 deletions
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