summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-20 06:48:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-20 06:48:10 +0000
commitc8b8a2b730b520575521689b3b984ee27f8fce18 (patch)
treecde300851cc12bd3fd70e214575099d176cffaeb /etc
parent978b96201f374977501f9690a28c9acab1c27358 (diff)
downloadpfsense-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.inc12
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 */
OpenPOWER on IntegriCloud