mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Have tmux keep reattaching
If someone accidentally detaches, then intervene and reattach.
This commit is contained in:
parent
d3a699a8fb
commit
7da0dfa0bb
@ -8,14 +8,14 @@ if ! grep console= /proc/cmdline >& /dev/null; then
|
||||
echo $autocons > /tmp/01-autocons.devnode
|
||||
if [ ! -z "$autocons" ]; then
|
||||
echo "Using $(cat /tmp/01-autocons.conf)"
|
||||
tmux a <> $autocons >&0 2>&1 &
|
||||
TERM=linux tmux a <> /dev/tty1 >&0 2>&1 &
|
||||
(while :; do tmux a <> $autocons >&0 2>&1; done) &
|
||||
(while :; do TERM=linux tmux a <> /dev/tty1 >&0 2>&1; done) &
|
||||
else
|
||||
tmux a <> /dev/console >&0 2>&1 &
|
||||
(while :; do tmux a <> /dev/console >&0 2>&1; done) &
|
||||
fi
|
||||
else
|
||||
tmux a <> /dev/console >&0 2>&1 &
|
||||
TERM=linux tmux a <> /dev/tty1 >&0 2>&1 &
|
||||
(while :; do tmux a <> /dev/console >&0 2>&1; done) &
|
||||
(while :; do TERM=linux tmux a <> /dev/tty1 >&0 2>&1; done) &
|
||||
fi
|
||||
echo -n "udevd: "
|
||||
/usr/lib/systemd/systemd-udevd --daemon
|
||||
|
Loading…
Reference in New Issue
Block a user