summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
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
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')
-rwxr-xr-xetc/rc.firmware7
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
OpenPOWER on IntegriCloud