Do not process custom image unless it really exists.

Before it was detecting an image of "" and triggering the -C error.
This commit is contained in:
Scott Ullrich 2006-04-16 00:24:40 +00:00
parent bf7b4fcc77
commit feb570f1c6

View File

@ -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