Revision f699da52
Added by Scott Ullrich about 20 years ago
etc/inc/config.inc | ||
---|---|---|
262 | 262 |
|
263 | 263 |
/* mount flash card read only */ |
264 | 264 |
function conf_mount_ro() { |
265 |
global $g; |
|
265 |
global $g, $do_not_mount_ro; |
|
266 |
|
|
267 |
if($g['booting'] == true) return; |
|
266 | 268 |
|
267 | 269 |
mwexec("/sbin/umount -f {$g['cf_path']}"); |
268 | 270 |
mwexec("/sbin/mount -r {$g['cf_path']}"); |
Also available in: Unified diff
Do not mount as ro if we're booting.