Commit e5cae36f authored by Franco Fichtner's avatar Franco Fichtner

etc: pull the old switcheroo on login shells

parent 377b5bd8
...@@ -398,7 +398,7 @@ function local_user_set(& $user) { ...@@ -398,7 +398,7 @@ function local_user_set(& $user) {
/* configure shell type */ /* configure shell type */
/* Cases here should be ordered by most privileged to least privileged. */ /* Cases here should be ordered by most privileged to least privileged. */
if (userHasPrivilege($user, "user-shell-access") || userHasPrivilege($user, "page-all")) { if (userHasPrivilege($user, "user-shell-access") || userHasPrivilege($user, "page-all")) {
$user_shell = "/bin/tcsh"; $user_shell = "/bin/csh";
} elseif (userHasPrivilege($user, "user-copy-files")) { } elseif (userHasPrivilege($user, "user-copy-files")) {
$user_shell = "/usr/local/bin/scponly"; $user_shell = "/usr/local/bin/scponly";
} elseif (userHasPrivilege($user, "user-ssh-tunnel")) { } elseif (userHasPrivilege($user, "user-ssh-tunnel")) {
...@@ -418,7 +418,7 @@ function local_user_set(& $user) { ...@@ -418,7 +418,7 @@ function local_user_set(& $user) {
/* root user special handling */ /* root user special handling */
if ($user_uid == 0) { if ($user_uid == 0) {
$cmd = "/usr/sbin/pw usermod -q -n root -s /bin/sh -H 0"; $cmd = "/usr/sbin/pw usermod -q -n root -s /usr/local/etc/rc.initial -H 0";
if($debug) if($debug)
log_error(sprintf(gettext("Running: %s"), $cmd)); log_error(sprintf(gettext("Running: %s"), $cmd));
$fd = popen($cmd, "w"); $fd = popen($cmd, "w");
......
...@@ -60,11 +60,11 @@ function rescue_detect_keypress() { ...@@ -60,11 +60,11 @@ function rescue_detect_keypress() {
if (in_array($key, array("r", "R"))) { if (in_array($key, array("r", "R"))) {
putenv("TERM=cons25"); putenv("TERM=cons25");
echo "\n\nRecovery mode selected...\n"; echo "\n\nRecovery mode selected...\n";
passthru("/usr/bin/env TERM=cons25 /bin/tcsh -c /usr/local/installer/lua_installer_rescue"); passthru("/usr/bin/env TERM=cons25 /bin/csh -c /usr/local/installer/lua_installer_rescue");
} elseif (in_array($key, array("i", "I"))) { } elseif (in_array($key, array("i", "I"))) {
putenv("TERM=cons25"); putenv("TERM=cons25");
echo "\n\nInstaller mode selected...\n"; echo "\n\nInstaller mode selected...\n";
passthru("/usr/bin/env TERM=cons25 /bin/tcsh -c /usr/local/installer/lua_installer"); passthru("/usr/bin/env TERM=cons25 /bin/csh -c /usr/local/installer/lua_installer");
if(file_exists("/tmp/install_complete")) { if(file_exists("/tmp/install_complete")) {
passthru("/etc/rc.reboot"); passthru("/etc/rc.reboot");
exit; exit;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
# If recovery console shell option has been specified # If recovery console shell option has been specified
if [ -f "/tmp/donotbootup" ]; then if [ -f "/tmp/donotbootup" ]; then
/usr/bin/env prompt="%B[%n@%m]%b%/(%h)||RecoveryConsoleShell: " /bin/tcsh /usr/bin/env prompt="%B[%n@%m]%b%/(%h)||RecoveryConsoleShell: " /bin/csh
rm "/tmp/donotbootup" rm "/tmp/donotbootup"
echo "Rebooting in 5 seconds... CTRL-C to abort..." echo "Rebooting in 5 seconds... CTRL-C to abort..."
sleep 5 sleep 5
...@@ -110,7 +110,7 @@ case ${opmode} in ...@@ -110,7 +110,7 @@ case ${opmode} in
/etc/rc.initial.ping /etc/rc.initial.ping
;; ;;
8) 8)
/bin/tcsh /bin/csh
;; ;;
9) 9)
/usr/local/sbin/pftop /usr/local/sbin/pftop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment