summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-27 23:18:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-27 23:18:50 +0000
commitcd88352b6f7bd8144aab088ebc90f65aa081eb9e (patch)
treefec41f8bfcfe4a3b8990eb7c2653a08663fc676f /etc/rc.firmware
parent64d08e72105b7a52cc521c49705800f7ddce1770 (diff)
downloadpfsense-cd88352b6f7bd8144aab088ebc90f65aa081eb9e.zip
pfsense-cd88352b6f7bd8144aab088ebc90f65aa081eb9e.tar.gz
run remove_chflags before upgrading.. they will be restored by the tgz
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 02854f4..a9c8e8d 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -23,6 +23,7 @@ restore_chflags() {
remove_chflags() {
chflags -R noschg /
+ chmod -R ug+rw /
}
binary_update() {
@@ -128,6 +129,8 @@ pfSenseupgrade)
# mount /cf
/sbin/mount -w -o noatime /cf
+ remove_chflags
+
# tar explode image onto hd
if [ -r $2 ]; then
echo "Installing $2." | logger -p daemon.info -i -t Upgrade
OpenPOWER on IntegriCloud