diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-03 19:47:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-03 19:47:29 +0000 |
commit | cbd615503522dd63d94ba86714e91bf72228aa76 (patch) | |
tree | 8a6755dc9039396edf0c89f61b263fd1c0b3ee4d /etc/rc.firmware_auto | |
parent | 5205ac4c07ee5d63896f7f7f1ac82f12273257f6 (diff) | |
download | pfsense-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-x | etc/rc.firmware_auto | 6 |
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 |