mirror of
https://github.com/sipeed/LicheeRV-Nano-Build.git
synced 2026-09-11 05:09:56 -05:00
23 lines
336 B
Bash
Executable File
23 lines
336 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$1" = "start" ]
|
|
then
|
|
. /etc/profile
|
|
if [ -e /boot/fb ]
|
|
then
|
|
echo "framebuffer enable"
|
|
insmod /mnt/system/ko/soph_fb.ko
|
|
fbpattern
|
|
# we need keep node /dev/fb0 open
|
|
# graphic layer will disable after node /dev/fb0 is closed
|
|
(
|
|
exec 3<>/dev/fb0
|
|
while true
|
|
do
|
|
sleep 65535
|
|
done
|
|
) &
|
|
fi
|
|
exit 0
|
|
fi
|