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 | |
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')
-rwxr-xr-x | etc/rc.firmware | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index e4e85e8..6370e1b 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -75,6 +75,13 @@ pfSenseupgrade) echo "Image installed." | logger -p daemon.info -i -t Upgrade fi + # process custom image if its passed + if [ -r $3 ]; then + echo "Custom image $3 found." | logger -p daemon.info -i -t Upgrade + tar xzPf $3 -U -C / | logger -p daemon.info -i -t Upgrade + echo "Custom image $3 installed." | logger -p daemon.info -i -t Upgrade + fi + # restore config cp -p /tmp/configbak/* /conf |