diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-16 00:24:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-16 00:24:40 +0000 |
commit | feb570f1c656165bc8eada3a693e240b58c21b9a (patch) | |
tree | e3169833f1cdfd4df678bf33e015498f43d0bf80 /etc | |
parent | bf7b4fcc7742cbe69008748b5fb129f5efdfa398 (diff) | |
download | pfsense-feb570f1c656165bc8eada3a693e240b58c21b9a.zip pfsense-feb570f1c656165bc8eada3a693e240b58c21b9a.tar.gz |
Do not process custom image unless it really exists.
Before it was detecting an image of "" and triggering the -C error.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.firmware | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index c6a525f..c5fb587 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -161,7 +161,7 @@ pfSenseupgrade) echo "Image installed $IMG." | logger -p daemon.info -i -t Upgrade # process custom image if its passed - if [ -r $CUSTOMIMG ]; then + if [ -f $CUSTOMIMG ]; then echo "Custom image $CUSTOMIMG found." | logger -p daemon.info -i -t Upgrade PWD_DIR=`pwd` cd / && /usr/bin/tar xzPUf $CUSTOMIMG | logger -p daemon.info -i -t Upgrade |