diff options
author | Renato Botelho <renato@netgate.com> | 2015-10-02 08:07:16 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-10-02 08:07:16 -0300 |
commit | b476eb8d7636c535713b66ac767cdb78684f287b (patch) | |
tree | bb8e9f9c955fee9162ebc0c861a28bf4c3afcd73 /src/usr/local/sbin | |
parent | f0308648e0e66176a8a960cab6cb0de00ac864fc (diff) | |
download | pfsense-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-x | src/usr/local/sbin/pfSense-upgrade | 4 |
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 |