Prevent dangling tmux
sessions
This commit is contained in:
parent
02abcde438
commit
1bfce6cfcb
|
@ -4,9 +4,8 @@ function waitNetwork -a witness
|
|||
set -l codeFile (mktemp)
|
||||
|
||||
if [ -z "$witness" ]
|
||||
tmux new-session -d 'cat /etc/motd; echo "$(tput bold)Please establish an internet connection…$(tput sgr0)"; $SHELL'
|
||||
|
||||
if not systemctl --quiet is-active network-online.target
|
||||
tmux new-session -d 'cat /etc/motd; echo "$(tput bold)Please establish an internet connection…$(tput sgr0)"; $SHELL'
|
||||
fish (status filename) true &
|
||||
set -l pid "$last_pid"
|
||||
|
||||
|
|
Loading…
Reference in a new issue