diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 23:22:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 23:22:30 +0000 |
commit | 923d0f443bd8ab94dcc1657828a0d658da970479 (patch) | |
tree | f4e67ef9df7d79b1eecbaa15049fc3be2ce60ce8 /usr/local | |
parent | 2f810bc1bb012edc911a7243ea5fac2203ba4025 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/system_advanced.php | 4 |
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(); } } ?> |