diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-03 22:36:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-03 22:36:24 +0000 |
commit | f30fd4b9fa8910dc85fcbc5eb032e207c1372664 (patch) | |
tree | e3c51d7f5c41b027675f9a0cfe57a6b4b6131ecc /etc/inc | |
parent | 8270a5ca0ab154946a2a9f65222d44b4a6906614 (diff) | |
download | pfsense-f30fd4b9fa8910dc85fcbc5eb032e207c1372664.zip pfsense-f30fd4b9fa8910dc85fcbc5eb032e207c1372664.tar.gz |
Mount and umount for pfSense platforms, too.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 10 |
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']}"); } |