summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-26 23:22:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-26 23:22:30 +0000
commit923d0f443bd8ab94dcc1657828a0d658da970479 (patch)
treef4e67ef9df7d79b1eecbaa15049fc3be2ce60ce8 /usr/local/www/system_advanced.php
parent2f810bc1bb012edc911a7243ea5fac2203ba4025 (diff)
downloadpfsense-923d0f443bd8ab94dcc1657828a0d658da970479.zip
pfsense-923d0f443bd8ab94dcc1657828a0d658da970479.tar.gz
Dont forget to mount rw and ro while writing out /etc/ttys and /boot/loader.rc
Diffstat (limited to 'usr/local/www/system_advanced.php')
-rwxr-xr-xusr/local/www/system_advanced.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 8111f69..fd1bb72 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -175,6 +175,8 @@ if ($_POST) {
$etc_ttys = return_filename_as_array("/etc/ttys");
$boot_loader_rc = return_filename_as_array("/boot/loader.rc");
+ config_mount_rw();
+
$fout = fopen("/etc/ttys","w");
foreach($etc_ttys as $tty) {
if(stristr($tty,"ttyp0") <> true) {
@@ -194,6 +196,8 @@ if ($_POST) {
if($pconfig['enableserial'] <> "")
fwrite($fout, "set console=comconsole\n");
fclose($fout);
+
+ config_mount_ro();
}
}
?>
OpenPOWER on IntegriCloud