summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/system_advanced.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 44bb1b2..3e15ac9 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -614,26 +614,6 @@ if (($config['system']['webgui']['certificate'] != $oldcert)
touch("/tmp/restart_webgui");
}
-function auto_login($status) {
- $gettytab = file_get_contents("/etc/gettytab");
- $getty_split = split("\n", $gettytab);
- conf_mount_rw();
- $fd = fopen("/etc/gettytab", "w");
- foreach($getty_split as $gs) {
- if(stristr($gs, "cb:ce:ck:lc") == true) {
- if($status == true) {
- fwrite($fd, ":cb:ce:ck:lc:fd#1000:im=\\r\\n%s/%m (%h) (%t)\\r\\n\\r\\n:sp#1200:\\\n");
- } else {
- fwrite($fd, ":al=root:cb:ce:ck:lc:fd#1000:im=\\r\\n%s/%m (%h) (%t)\\r\\n\\r\\n:sp#1200:\\\n");
- }
- } else {
- fwrite($fd, "{$gs}\n");
- }
- }
- fclose($fd);
- conf_mount_ro();
-}
-
?>
</body>
</html>
OpenPOWER on IntegriCloud