From 312710db15570fea11b9ade4e5e2248d85e9a138 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 20 Nov 2005 02:09:25 +0000 Subject: Force a umount of /cf then remount as ro --- etc/inc/config.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc') 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 -- cgit v1.1