summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-01 17:32:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-01 17:32:54 +0000
commit2b2de692388603f7437a5da3ffdade6597825d02 (patch)
tree072da769121020c4843ab32f8f7d03e9fadd607f
parent999705416325df91682423b6eb415e15314d194d (diff)
downloadpfsense-2b2de692388603f7437a5da3ffdade6597825d02.zip
pfsense-2b2de692388603f7437a5da3ffdade6597825d02.tar.gz
If an error occurs, exit with 1, not 0
-rwxr-xr-xetc/rc.firmware_auto8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.firmware_auto b/etc/rc.firmware_auto
index 7ef1830..a6d8fec 100755
--- a/etc/rc.firmware_auto
+++ b/etc/rc.firmware_auto
@@ -25,12 +25,12 @@ echo "Downloaded MD5: ${MD}" | logger -p daemon.info -i -t AutoUpgrade
if [ "$PMD" = "" ]; then
echo "Package MD5 is null md5. Require proxy auth?" | logger -p daemon.info -i -t AutoUpgrade
- exit 0
+ exit 1
fi
if [ "$MD" = "" ]; then
echo "Downloaded MD5 is null md5. Require proxy auth?" | logger -p daemon.info -i -t AutoUpgrade
- exit 0
+ exit 1
fi
if [ "$PMD" = "$MD" ]; then
@@ -39,5 +39,5 @@ if [ "$PMD" = "$MD" ]; then
exit 0
fi
-echo "MD5's do not match." | logger -p daemon.info -i -t AutoUpgrade
-exit 0
+echo "MD5's do not match. Upgrade aborted." | logger -p daemon.info -i -t AutoUpgrade
+exit 1
OpenPOWER on IntegriCloud