diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 57992f478f..81e2e6735a 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -48,6 +48,8 @@ LIVE="no" BREAK_TRIPPED="no" +BIGFONT="1080" + # Get a serial number if present (eg. RPi) otherwise use MAC address from eth0 MACHINE_UID="$(cat /proc/cpuinfo | awk '/^Serial/{s=$3; gsub ("^0*","",s); print s}')" [ -z "$MACHINE_UID" ] && MACHINE_UID="$(cat /sys/class/net/eth0/address 2>/dev/null | tr -d :)" @@ -373,7 +375,7 @@ set_consolefont() { progress "Set console font" if [ -e /dev/fb0 ]; then vres="$(fbset 2>/dev/null | awk '/geometry/ { print $3 }')" - if [ $vres -gt 1080 ]; then + if [ $vres -gt "$BIGFONT" ]; then setfont -C /dev/tty0 ter-v32b.psf fi fi @@ -1047,6 +1049,9 @@ for arg in $(cat /proc/cmdline); do break=*) BREAK="${arg#*=}" ;; + bigfont=*) + BIGFONT="${arg#*=}" + ;; esac done