diff options
author | maximilian attems <max@stro.at> | 2008-04-02 22:19:59 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2008-04-02 22:19:59 +0200 |
commit | c1fd9aa6213613fed140da7fe68c67a91f478509 (patch) | |
tree | 7b853300d5d4b603b73b9725e29a85bbe94f6389 /scripts | |
parent | 5dfdae9ae274c271943c9bee9ddc3db7fd255695 (diff) | |
download | initramfs-tools-c1fd9aa6213613fed140da7fe68c67a91f478509.tar.gz initramfs-tools-c1fd9aa6213613fed140da7fe68c67a91f478509.zip |
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')
-rw-r--r-- | scripts/functions | 2 |
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 |