mirror of https://github.com/goodtft/LCD-show.git
modify lcd35 driver for new system
This commit is contained in:
parent
735a12105e
commit
99f12f75bc
|
|
@ -39,7 +39,9 @@ fi
|
||||||
|
|
||||||
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
|
if [[ "$deb_version" = "13.1" ]] || [[ "$deb_version" > "13.1" ]]; then
|
||||||
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
|
sudo cp -rf ./usr/99-fbturbo-fbcp.conf /usr/share/X11/xorg.conf.d/99-fbturbo.~
|
||||||
sudo cp -rf ./etc/rc_x11.local /etc/rc.local
|
sudo cp -rf ./etc/.bash_profile /home/$username/
|
||||||
|
|
||||||
|
#sudo cp -rf ./etc/rc_x11.local /etc/rc.local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
#if test "$root_dev" = "/dev/mmcblk0p7";then
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
export FRAMEBUFFER=/dev/fb1
|
||||||
|
startx 2> /tmp/log_output.txt
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
#
|
|
||||||
# rc.local
|
|
||||||
#
|
|
||||||
# This script is executed at the end of each multiuser runlevel.
|
|
||||||
# Make sure that the script will "exit 0" on success or any other
|
|
||||||
# value on error.
|
|
||||||
#
|
|
||||||
# In order to enable or disable this script just change the execution
|
|
||||||
# bits.
|
|
||||||
#
|
|
||||||
# By default this script does nothing.
|
|
||||||
|
|
||||||
# Print the IP address
|
|
||||||
_IP=$(hostname -I) || true
|
|
||||||
if [ "$_IP" ]; then
|
|
||||||
printf "My IP address is %s\n" "$_IP"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export FRAMEBUFFER=/dev/fb1
|
|
||||||
startx 2> /tmp/log_output.txt &
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
big_version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
|
big_version=`lsb_release -r | awk -F ' ' '{printf $NF}'`
|
||||||
deb_version=`cat /etc/debian_version | tr -d '\n'`
|
deb_version=`cat /etc/debian_version | tr -d '\n'`
|
||||||
hw_result=`tr -d '\0' < /proc/device-tree/model`
|
hw_result=`tr -d '\0' < /proc/device-tree/model`
|
||||||
|
username=`logname | tr -d '\n'`
|
||||||
|
|
||||||
if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then
|
if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then
|
||||||
hardware_arch=64
|
hardware_arch=64
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue