Skip to content

Commit c645a9f

Browse files
committed
Remove Comments
1 parent c4dd29d commit c645a9f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

core/tabs/system-setup/terminus-tty.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
. ../common-script.sh
44
InstallTermiusFonts() {
5-
# Checking the Font is installed or not. By Checking the Font Files
65
if [ ! -f "/usr/share/kbd/consolefonts/ter-c18b.psf.gz" ] &&
76
[ ! -f "/usr/share/consolefonts/Uni3-TerminusBold18x10.psf.gz" ] &&
87
[ ! -f "/usr/lib/kbd/consolefonts/ter-p32n.psf.gz" ]; then
@@ -27,34 +26,29 @@ SetTermiusFonts() {
2726
case "$DTYPE" in
2827
arch)
2928
printf "%b\n" "${YELLOW}Updating FONT= line in /etc/vconsole.conf...${RC}"
30-
# Setting Default TTY Fonts
3129
"$ESCALATION_TOOL" sed -i 's/^FONT=.*/FONT=ter-v32b/' /etc/vconsole.conf
32-
# Checking if is an X11 or Wayland Session
3330
if [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
3431
"$ESCALATION_TOOL" setfont -C /dev/tty1 ter-v32b
3532
fi
3633
printf "%b\n" "${GREEN}Terminus font set for TTY.${RC}"
3734
;;
3835
debian)
39-
# Setting Default TTY Fonts
36+
4037
printf "%b\n" "${YELLOW}Updating console-setup configuration...${RC}"
4138
"$ESCALATION_TOOL" sed -i 's/^CODESET=.*/CODESET="guess"/' /etc/default/console-setup
4239
"$ESCALATION_TOOL" sed -i 's/^FONTFACE=.*/FONTFACE="TerminusBold"/' /etc/default/console-setup
4340
"$ESCALATION_TOOL" sed -i 's/^FONTSIZE=.*/FONTSIZE="16x32"/' /etc/default/console-setup
4441
printf "%b\n" "${GREEN}Console-setup configuration updated for Terminus font.${RC}"
45-
# After Edited the console-setup requires initramfs to be updated
42+
# Editing console-setup requires initramfs to be regenerated
4643
"$ESCALATION_TOOL" update-initramfs -u
47-
# Checking if is an X11 or Wayland Session
4844
if [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
4945
"$ESCALATION_TOOL" setfont -C /dev/tty1 /usr/share/consolefonts/Uni3-TerminusBold32x16.psf.gz
5046
fi
5147
printf "%b\n" "${GREEN}Terminus font has been set for TTY.${RC}"
5248
;;
5349
fedora)
5450
printf "%b\n" "${YELLOW}Updating FONT= line in /etc/vconsole.conf...${RC}"
55-
# Setting Default TTY Fonts
5651
"$ESCALATION_TOOL" sed -i 's/^FONT=.*/FONT=ter-v32b/' /etc/vconsole.conf
57-
# Checking if is an X11 or Wayland Session
5852
if [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
5953
"$ESCALATION_TOOL" setfont -C /dev/tty1 ter-v32b
6054
fi

0 commit comments

Comments
 (0)