#!/bin/ash disable_tty_switch() { cat > /etc/X11/xorg.conf.d/50-no-tty.conf < /proc/sys/kernel/sysrq } change_loginscreen() { mkdir -p "/etc/lightdm/qt-lightdm-greeter.conf.d" cat > "/etc/lightdm/qt-lightdm-greeter.conf.d/99-exam-mode.conf" < "/etc/systemd/logind.conf.d/99-exam.conf" <> "/etc/issue.net" echo "++++++++++++++++++++++++++++++++++++++" >> "/etc/issue.net" } disable_tty_switch disable_openbox_menu disable_magic_keys change_loginscreen systemd_config ssh_banner exit 0