summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--root/.profile2
-rw-r--r--root/.shrc2
-rwxr-xr-xtmp/post_upgrade_command2
3 files changed, 3 insertions, 3 deletions
diff --git a/root/.profile b/root/.profile
index 2252b5f..cf2ea6a 100644
--- a/root/.profile
+++ b/root/.profile
@@ -1,5 +1,5 @@
# Detect interactive logins and display the shell
-if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then
+if [ -n "${SSH_TTY}" -o "${TERM}" = "xterm" ]; then
/etc/rc.initial
exit
fi
diff --git a/root/.shrc b/root/.shrc
index 2252b5f..cf2ea6a 100644
--- a/root/.shrc
+++ b/root/.shrc
@@ -1,5 +1,5 @@
# Detect interactive logins and display the shell
-if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then
+if [ -n "${SSH_TTY}" -o "${TERM}" = "xterm" ]; then
/etc/rc.initial
exit
fi
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command
index d5577f7..d5fc582 100755
--- a/tmp/post_upgrade_command
+++ b/tmp/post_upgrade_command
@@ -9,7 +9,7 @@ if [ $PFSENSETYPE = "pfSense" ] || [ $PFSENSETYPE = "nanobsd" ]; then
fi
# Detect interactive logins and display the shell
-detect_command='[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial'
+detect_command='[ -n "$SSH_TTY" -o "$TERM" = "xterm" ] && exec /etc/rc.initial'
echo "$detect_command" > $CVS_CO_DIR/root/.shrc
echo "$detect_command" >> $CVS_CO_DIR/root/.profile
OpenPOWER on IntegriCloud