Add fix for konsole
This commit is contained in:
parent
cd6acd3a12
commit
31b019fbc9
23
debian/desktop-environment/clean-install-kde.sh
vendored
23
debian/desktop-environment/clean-install-kde.sh
vendored
@ -51,6 +51,24 @@ fix_net() {
|
|||||||
systemctl restart NetworkManager-wait-online.service
|
systemctl restart NetworkManager-wait-online.service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fix_console() {
|
||||||
|
VAR_DIR_CONSOLE=/etc/systemd/system/console-setup.service.d
|
||||||
|
VAR_DIR_KEYBOARD=/etc/systemd/system/keyboard-setup.service.d
|
||||||
|
if ! [ -d "$VAR_DIR_CONSOLE" ]; then
|
||||||
|
mkdir -p $VAR_DIR_CONSOLE
|
||||||
|
echo "[Unit]" > $VAR_DIR_CONSOLE/override.conf
|
||||||
|
echo "After=systemd-tmpfiles-setup.service" >> $VAR_DIR_CONSOLE/override.conf
|
||||||
|
echo "Add fix for console-setup.service"
|
||||||
|
fi
|
||||||
|
if ! [ -d "$VAR_DIR_KEYBOARD" ]; then
|
||||||
|
mkdir -p $VAR_DIR_KEYBOARD
|
||||||
|
echo "[Unit]" > $VAR_DIR_KEYBOARD/override.conf
|
||||||
|
echo "After=systemd-tmpfiles-setup.service" >> $VAR_DIR_KEYBOARD/override.conf
|
||||||
|
echo "Add fix for keyboard-setup.service"
|
||||||
|
fi
|
||||||
|
systemctl restart console-setup.service
|
||||||
|
systemctl restart keyboard-setup.service
|
||||||
|
}
|
||||||
#### Main
|
#### Main
|
||||||
|
|
||||||
check_root
|
check_root
|
||||||
@ -97,3 +115,8 @@ echo -ne "\nYou want to run fix_net function? "
|
|||||||
if choice 2>/dev/null; then
|
if choice 2>/dev/null; then
|
||||||
fix_net
|
fix_net
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -ne "\nYou want to run fix_console function? "
|
||||||
|
if choice 2>/dev/null; then
|
||||||
|
fix_console
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user