launch bottom on VC10 and bandwhich on VC9

This commit is contained in:
Tobias Powalowski 2024-07-09 11:38:29 +02:00
parent 55b7ac4580
commit c02ed8e393
3 changed files with 27 additions and 1 deletions

View file

@ -63,7 +63,7 @@ id128,sysext} tar tee testpkg top touch trust tty unix_{chkpwd,update} /usr/lib/
fi
# add zoxide
echo "eval \"\$(zoxide init bash)\"" >> ${_ROOTFS}/root/.bashrc
# add resolve.conf
# add resolve.conf symlink
_symlink /etc/resolv.conf ../run/systemd/resolve/stub-resolv.conf
# add libsasl
_map _full_dir /usr/lib/{sasl2,girepository-1.0}

View file

@ -126,6 +126,18 @@ if [[ "${_TTY}" = "tty1" ]] ; then
[[ -e /etc/systemd/system/pacman-init.service ]] && systemctl start pacman-init
fi
fi
# start bottom on VC10
while [[ "${_TTY}" = "tty10" ]] ; do
if command -v btm 2>"${_NO_LOG}"; then
btm
fi
done
# start bandwhich on VC9
while [[ "${_TTY}" = "tty9" ]] ; do
if command -v bandwhich 2>"${_NO_LOG}"; then
bandwhich
fi
done
if [[ -e /usr/bin/setup ]]; then
_local_mode
# wait on user interaction!

View file

@ -0,0 +1,14 @@
# File which lists terminals from which root can log in.
# See securetty(5) for details.
console
tty1
tty2
tty3
tty4
tty5
tty6
tty9
tty10
ttyS0
hvc0