mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
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:
parent
662ae60a35
commit
98b6c97568
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user