|
--- a/usr/bin/byobu.in
|
|
+++ b/usr/bin/byobu.in
|
|
@@ -62,7 +62,7 @@ esac
|
|
export BYOBU_BACKEND
|
|
|
|
# Store the parent tty
|
|
-export BYOBU_TTY=$(tty)
|
|
+export BYOBU_TTY=$(readlink /proc/$$/fd/0)
|
|
|
|
# Get the default window name
|
|
[ -n "$BYOBU_WINDOW_NAME" ] || BYOBU_WINDOW_NAME=-
|
|
--- a/usr/bin/byobu-launch.in
|
|
+++ b/usr/bin/byobu-launch.in
|
|
@@ -30,8 +30,8 @@
|
|
# or edit your sshd_config, ssh_config, and set:
|
|
# $HOME/.bashrc: export BYOBU_DISABLE=1
|
|
|
|
-_tty=$(tty)
|
|
-if [ "${_tty#/dev/ttyS}" != "$_tty" ]; then
|
|
+_tty=$(readlink /proc/$$/fd/0)
|
|
+if [ "${_tty#/dev/ttyS}" != "$_tty" ] && [ "${_tty#/dev/ttyAMA}" != "$_tty" ]; then
|
|
# Don't autolaunch byobu on serial consoles
|
|
# You can certainly run 'byobu' manually, though
|
|
echo
|