From 2ab521736a62679018967ecc52cf23feba79d5f0 Mon Sep 17 00:00:00 2001 From: BalintBanyasz Date: Sun, 24 Apr 2016 20:46:10 +0200 Subject: [PATCH] Parse fbcon command line option Fix machybris issue --- init | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/init b/init index 74b6bda..b975893 100755 --- a/init +++ b/init @@ -1,10 +1,5 @@ #!/bin/sh -insmod font.ko -insmod softcursor.ko -insmod bitblit.ko -insmod fbcon.ko - [ -d /dev ] || mkdir -m 0755 /dev [ -d /root ] || mkdir -m 0700 /root [ -d /sys ] || mkdir /sys @@ -61,6 +56,7 @@ export blacklist= export resume= export resume_offset= export recovery= +export fbcon=y # mdadm needs hostname to be set. This has to be done before the udev rules are called! if [ -f "/etc/hostname" ]; then @@ -219,9 +215,19 @@ for x in $(cat /proc/cmdline); do recovery) recovery=y ;; + fbcon=vc:64-63) + fbcon=n + ;; esac done +if [ "$fbcon" = "y" ]; then + insmod font.ko + insmod softcursor.ko + insmod bitblit.ko + insmod fbcon.ko +fi + case "$ROOT" in *mtd*) insmod /rk30xxnand-3.0.36+.ko @@ -362,6 +368,7 @@ unset quiet unset readonly unset resume unset resume_offset +unset fbcon # Chain to real filesystem exec run-init ${rootmnt} ${init} "$@" ${recovery:+--startup-event=recovery} <${rootmnt}/dev/console >${rootmnt}/dev/console 2>&1