Debian Codegraph @

lib/terminal-wrapper

raw
1 #! /bin/bash
2
3 # This script is part of FAI (Fully Automatic Installation)
4 # (c) 2023-2025 by Thomas Lange, [email protected]
5
6 # start fai directly or inside screen or tmux
7
8 . /usr/lib/fai/subroutines
9 eval_cmdline
10 define_fai_flags
11
12 if [ X$flag_screen = X1 ]; then
13 screen -S FAI /usr/sbin/fai
14 exec /usr/lib/fai/fai-abort
15 elif [ X$flag_tmux = X1 ]; then
16 tmux new-session -s FAI /usr/sbin/fai
17 exec /usr/lib/fai/fai-abort
18 else
19 exec /usr/sbin/fai
20 fi