diff --git a/usr/bin/archboot-detect-vconsole.sh b/usr/bin/archboot-detect-vconsole.sh index 6218e26ae..dadb39339 100755 --- a/usr/bin/archboot-detect-vconsole.sh +++ b/usr/bin/archboot-detect-vconsole.sh @@ -4,7 +4,18 @@ # sets bigger font on bigger display resolutions # by Tobias Powalowski # -# wait for modules to initialize cmompletely +. /usr/lib/archboot/common.sh +usage() { + echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Detect Big Screen\e[m" + echo -e "\e[1m----------------\e[m" + echo "Detect big screen on boot and change to bigger font afterwards." + echo "" + echo -e "Usage: \e[1m${_BASENAME} run\e[m" + exit 0 +} +[[ -z "${1}" || "${1}" != "run" ]] && _usage +_root_check +# wait for modules to initialize completely udevadm wait --settle /dev/fb0 # get screen setting mode from /sys _FB_SIZE="$(rg -o ':(.*)x' -r '$1' /sys/class/graphics/fb0/modes 2>/dev/null)" diff --git a/usr/share/archboot/base/etc/systemd/system/detect-vconsole.service b/usr/share/archboot/base/etc/systemd/system/detect-vconsole.service index 168bf52b7..47c77be49 100644 --- a/usr/share/archboot/base/etc/systemd/system/detect-vconsole.service +++ b/usr/share/archboot/base/etc/systemd/system/detect-vconsole.service @@ -8,4 +8,4 @@ After=systemd-udev-trigger.service [Service] Type=oneshot RemainAfterExit=yes -ExecStart=/usr/bin/detect-vconsole.sh +ExecStart=/usr/bin/detect-vconsole.sh run