diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-20 02:09:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-20 02:09:25 +0000 |
commit | 312710db15570fea11b9ade4e5e2248d85e9a138 (patch) | |
tree | 29268443a56fa78e70c3a956d6acf5b49580a147 /etc/inc | |
parent | 191a81751647567956acba1154615f6c947f10fe (diff) | |
download | pfsense-312710db15570fea11b9ade4e5e2248d85e9a138.zip pfsense-312710db15570fea11b9ade4e5e2248d85e9a138.tar.gz |
Force a umount of /cf then remount as ro
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index e2df733..2bd0a1a 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -337,7 +337,11 @@ function conf_mount_ro() { if($g['platform'] == "cdrom") return; + /* sync data, then force a umount the remount of /cf */ + mwexec("/bin/sync"); + mwexec("/sbin/umount -f {$g['cf_path']}"); mwexec("/sbin/mount -r {$g['cf_path']}"); + /* if the platform is soekris or wrap, lets unmount the * compact flash card. */ @@ -1354,4 +1358,4 @@ function start_devd() { exec("/sbin/devd"); } -?> +?>
\ No newline at end of file |