diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-20 06:48:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-20 06:48:10 +0000 |
commit | c8b8a2b730b520575521689b3b984ee27f8fce18 (patch) | |
tree | cde300851cc12bd3fd70e214575099d176cffaeb /etc | |
parent | 978b96201f374977501f9690a28c9acab1c27358 (diff) | |
download | pfsense-c8b8a2b730b520575521689b3b984ee27f8fce18.zip pfsense-c8b8a2b730b520575521689b3b984ee27f8fce18.tar.gz |
Mount or unmount soekris boot partition for conf_mount_rw and counf_mount_ro
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index b9bf57e..ec07396 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -208,6 +208,12 @@ function conf_mount_rw() { (doesn't sync the files properly and /bin/sync won't help either) */ mwexec("/sbin/umount -f {$g['cf_path']}"); mwexec("/sbin/mount -w -o noatime {$g['cf_path']}"); + /* if the platform is soekris or wrap, lets mount the + compact flash card. */ + if($g['platform'] == "wrap" or $g['platform'] == "net45xx") { + mwexec("/sbin/umount -f {$g['embeddedbootupslice']}"); + mwexec("/sbin/mount -w -o noatime {$g['embeddedbootupslice']}"); + } } /* mount flash card read only */ @@ -216,6 +222,12 @@ function conf_mount_ro() { 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. */ + if($g['platform'] == "wrap" or $g['platform'] == "net45xx") { + mwexec("/sbin/umount -f {$g['embeddedbootupslice']}"); + mwexec("/sbin/mount -r -o noatime {$g['embeddedbootupslice']}"); + } } /* convert configuration, if necessary */ |