summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-10-02 08:07:16 -0300
committerRenato Botelho <renato@netgate.com>2015-10-02 08:07:16 -0300
commitb476eb8d7636c535713b66ac767cdb78684f287b (patch)
treebb8e9f9c955fee9162ebc0c861a28bf4c3afcd73 /src/usr/local/sbin
parentf0308648e0e66176a8a960cab6cb0de00ac864fc (diff)
downloadpfsense-b476eb8d7636c535713b66ac767cdb78684f287b.zip
pfsense-b476eb8d7636c535713b66ac767cdb78684f287b.tar.gz
Make sure partition are mounted in rw mode before any operation
Diffstat (limited to 'src/usr/local/sbin')
-rwxr-xr-xsrc/usr/local/sbin/pfSense-upgrade4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade
index becc445..cebc012 100755
--- a/src/usr/local/sbin/pfSense-upgrade
+++ b/src/usr/local/sbin/pfSense-upgrade
@@ -120,6 +120,8 @@ _exit() {
rm -f ${pid_file}
fi
+ /etc/rc.conf_mount_ro
+
local _rc=${1:-"0"}
# If EVENT_PIPE is defined, GUI is calling
@@ -423,6 +425,8 @@ if pgrep -qF ${pid_file} >/dev/null 2>&1; then
exit 1
fi
+/etc/rc.conf_mount_rw
+
echo $$ > ${pid_file}
trap _exit 1 2 15 EXIT
OpenPOWER on IntegriCloud