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 <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-02-24 08:16:36 +01:00
parent 662ae60a35
commit 98b6c97568
2 changed files with 22 additions and 18 deletions

View File

@ -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

View File

@ -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