blob: 82ec5878e0d84396db2e1a9fe29b165ce67eed32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/ash
disable_tty_switch() {
cat <<EOF > /etc/X11/xorg.conf.d/50-no-tty.conf
Section "ServerFlags"
Option "DontVTSwitch" "true"
EndSection
EOF
}
disable_openbox_menu() {
[ ! -e "/etc/xdg/openbox/rc.xml.safe" ] && \
echo "No rc.xml.safe template found." && return 1
cp "/etc/xdg/openbox/rc.xml" "/root/rc.xml.unsafe"
cp "/etc/xdg/openbox/rc.xml.safe" "/etc/xdg/openbox/rc.xml"
}
disable_magic_keys() {
echo 0 > /proc/sys/kernel/sysrq
}
change_loginscreen() {
local CF="/etc/lightdm/qt-lightdm-greeter.conf"
sed -r -i 's/#[a-fA-F0-9]{6}/#757575/g' "/opt/openslx/lightdm/bwlp-banner.svg"
sed -r -i '/^greeter-background/d' "$CF"
echo "greeter-background-gradient=f9a72b ffffff" >> "$CF"
}
disable_tty_switch
disable_openbox_menu
disable_magic_keys
change_loginscreen
exit 0
|