summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-03 22:36:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-03 22:36:24 +0000
commitf30fd4b9fa8910dc85fcbc5eb032e207c1372664 (patch)
treee3c51d7f5c41b027675f9a0cfe57a6b4b6131ecc /etc/inc
parent8270a5ca0ab154946a2a9f65222d44b4a6906614 (diff)
downloadpfsense-f30fd4b9fa8910dc85fcbc5eb032e207c1372664.zip
pfsense-f30fd4b9fa8910dc85fcbc5eb032e207c1372664.tar.gz
Mount and umount for pfSense platforms, too.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 3c72790..4bbf6cd 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -290,9 +290,10 @@ function conf_mount_rw() {
$status = 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") {
+ /* if the platform is soekris or wrap or pfSense, lets mount the
+ compact flash cards root. */
+ if($g['platform'] == "wrap" or $g['platform'] == "net45xx"
+ or $g['platform'] == "pfSense") {
mwexec("/sbin/umount -f {$g['embeddedbootupslice']}");
$status = mwexec("/sbin/mount -w {$g['embeddedbootupslice']}");
/* we could not mount this correctly. kick off fsck */
@@ -323,7 +324,8 @@ function conf_mount_ro() {
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") {
+ if($g['platform'] == "wrap" or $g['platform'] == "net45xx"
+ or $g['platform'] == "pfSense") {
mwexec("/sbin/umount -f {$g['embeddedbootupslice']}");
mwexec("/sbin/mount -r {$g['embeddedbootupslice']}");
}
OpenPOWER on IntegriCloud