summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-02 15:37:22 -0500
committersullrich <sullrich@pfsense.org>2009-12-02 15:37:47 -0500
commit7ef2b26090d642aec398f18e8b5c61093ffa6341 (patch)
tree3ba380c706b6b8b46e66f460da3ced31e6300f38 /etc/phpshellsessions
parent6e5eadf8c9b718903e82cb4653f784f94c4aacd1 (diff)
downloadpfsense-7ef2b26090d642aec398f18e8b5c61093ffa6341.zip
pfsense-7ef2b26090d642aec398f18e8b5c61093ffa6341.tar.gz
Unbreak console lockout on bootup and in gitsync (pfSsh.php) Resolves #195
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/gitsync8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync
index 6262034..34f9a63 100644
--- a/etc/phpshellsessions/gitsync
+++ b/etc/phpshellsessions/gitsync
@@ -208,6 +208,14 @@ function post_cvssync_commands() {
echo "\n";
}
+ /* lock down console if necessary */
+ echo "Locking down the console if needed...\n";
+ if(isset($config['system']['disableconsolemenu'])) {
+ auto_login(false);
+ } else {
+ auto_login(true);
+ }
+
echo "===> Signaling PHP and Lighty restart...";
$fd = fopen("/tmp/restart_lighty", "w");
fwrite($fd, "#!/bin/sh\n");
OpenPOWER on IntegriCloud