summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware_auto
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-03 19:47:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-03 19:47:29 +0000
commitcbd615503522dd63d94ba86714e91bf72228aa76 (patch)
tree8a6755dc9039396edf0c89f61b263fd1c0b3ee4d /etc/rc.firmware_auto
parent5205ac4c07ee5d63896f7f7f1ac82f12273257f6 (diff)
downloadpfsense-cbd615503522dd63d94ba86714e91bf72228aa76.zip
pfsense-cbd615503522dd63d94ba86714e91bf72228aa76.tar.gz
If /tmp/custom.tgz exists, allow it to overwrite the upgrade. This can be useful if you do not wish to upgrade a certain part of pfSense.
Diffstat (limited to 'etc/rc.firmware_auto')
-rwxr-xr-xetc/rc.firmware_auto6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/rc.firmware_auto b/etc/rc.firmware_auto
index a6d8fec..da83aab 100755
--- a/etc/rc.firmware_auto
+++ b/etc/rc.firmware_auto
@@ -35,7 +35,11 @@ fi
if [ "$PMD" = "$MD" ]; then
echo "MD5's match." | logger -p daemon.info -i -t AutoUpgrade
- /etc/rc.firmware pfSenseupgrade /tmp/latest.tgz
+ if [ -e "/tmp/custom.tgz" ]; then
+ /etc/rc.firmware pfSenseupgrade /tmp/latest.tgz /tmp/custom.tgz
+ else
+ /etc/rc.firmware pfSenseupgrade /tmp/latest.tgz
+ fi
exit 0
fi
OpenPOWER on IntegriCloud