diff options
author | Steffen Ritter | 2018-04-20 13:19:22 +0200 |
---|---|---|
committer | Steffen Ritter | 2018-04-20 13:19:22 +0200 |
commit | 5397732b97d75eee0f34e19362d736452f2b193b (patch) | |
tree | e41324604baecda05d282b247ea48b0b396b416c /core | |
parent | [safe-mode] systemd != systemctl (diff) | |
download | mltk-5397732b97d75eee0f34e19362d736452f2b193b.tar.gz mltk-5397732b97d75eee0f34e19362d736452f2b193b.tar.xz mltk-5397732b97d75eee0f34e19362d736452f2b193b.zip |
[safe-mode] disable screen going to standby/poweroff
Diffstat (limited to 'core')
-rwxr-xr-x | core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode b/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode index 4c3195f7..dacefa37 100755 --- a/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode +++ b/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode @@ -19,6 +19,10 @@ disable_magic_keys() { echo 0 > /proc/sys/kernel/sysrq } +disable_screen_standby() { + xset s off -dpms +} + change_loginscreen() { local CF="/etc/lightdm/qt-lightdm-greeter.conf" sed -r -i '/^greeter-background/d;s:(^greeter-banner-image=).*$:\1/opt/openslx/lightdm/bwlp-banner-exam.svg:' "$CF" @@ -53,9 +57,11 @@ ssh_banner() { echo "++++++++++++++++++++++++++++++++++++++" >> "/etc/issue.net" } + disable_tty_switch disable_openbox_menu disable_magic_keys +disable_screen_standby change_loginscreen systemd_config ssh_banner |