diff --git a/debian/desktop-environment/clean-install-kde.sh b/debian/desktop-environment/clean-install-kde.sh index 19d5a31..e129972 100755 --- a/debian/desktop-environment/clean-install-kde.sh +++ b/debian/desktop-environment/clean-install-kde.sh @@ -51,6 +51,24 @@ fix_net() { 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 check_root @@ -97,3 +115,8 @@ echo -ne "\nYou want to run fix_net function? " if choice 2>/dev/null; then fix_net fi + +echo -ne "\nYou want to run fix_console function? " +if choice 2>/dev/null; then + fix_console +fi