From 98b6c97568a055b4d62a1e99f0da19d70d54db52 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 24 Feb 2012 08:16:36 +0100 Subject: [PATCH] busybox: cleanup /sbin/init, move mount of filesystem in init script, clear screen on boot and hide cursor if possible, load uvesafb if no framebuffer is present Signed-off-by: Stephan Raue --- .../busybox/init.d/01_mount-filesystem | 6 ++++ packages/sysutils/busybox/scripts/init | 34 +++++++++---------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/packages/sysutils/busybox/init.d/01_mount-filesystem b/packages/sysutils/busybox/init.d/01_mount-filesystem index 5cf3c27d0b..de74c4555f 100644 --- a/packages/sysutils/busybox/init.d/01_mount-filesystem +++ b/packages/sysutils/busybox/init.d/01_mount-filesystem @@ -24,4 +24,10 @@ # runlevels: openelec, installer, textmode progress "mounting needed filesystems" + mkdir -p /dev/pts + mount -n -t devpts -o gid=5,mode=620 none /dev/pts + + mkdir -p /dev/shm + mount -n -t tmpfs none /dev/shm + mount -n -t ramfs none /var diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index a237295bbc..32ee8fec08 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -20,30 +20,28 @@ # http://www.gnu.org/copyleft/gpl.html ################################################################################ -# mounting needed special filesystems -# mount -n -t proc none /proc # mounted in initramfs -# mount -n -t sysfs none /sys # mounted in initramfs -# mount -n -t devtmpfs none /dev # mounted in initramfs - - echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink - - mkdir -p /dev/pts - mount -n -t devpts -o gid=5,mode=620 none /dev/pts - - mkdir -p /dev/shm - mount -n -t tmpfs none /dev/shm - -# showing version -# lsb_release - -# starting init scripts for wanted runlevel - if [ -f /etc/oem.conf ]; then . /etc/oem.conf fi . /etc/profile +# clear screen and set console + clear + export CONSOLE=/dev/tty3 + +# showing version +# lsb_release + +# starting framebuffer if it still not exist + if [ ! -e /dev/fb0 ]; then + modprobe uvesafb mode_option=1920x1080-32 mtrr=3 scroll=ywrap + fi + +# disable cursor + echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink + +# starting init scripts for wanted runlevel progress "Starting Init Scripts" RET=0