Open tmfdk333 opened 5 years ago
i=1
echo "i: ${i}"
for lines in cat ./boot/mark
do
echo "lines: ${lines}"
case ${i} in
1) var1=${lines}
echo "var: ${var1}"
;;
esac
i=expr ${i} + 1
echo "i: ${i}"
done
j=$(uname -n) echo "j: ${j}"
if test "$var1" = "0" -a "$1" != "lite" -a "$2" != "lite";then echo "test: $test" if test "$j" != "retropie" ;then echo "test is not retropie" # real
# sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
fi
if test "$j" = "retropie" ;then echo "test is retropie"
fi
echo "1" > ./boot/mark
elif test "$var1" = "0" -a "$1" = "lite" ;then echo "test: $test" echo "1" > ./boot/mark
fi
if test "$1" = "0" -o "$#" = "0" -o "$2" = "0"; then
echo "LCD configrue 0" #real elif test "$1" = "lite" -a "$#" = "1"; then
echo "LCD configrue 0" elif test "$1" = "90" -o "$2" = "90"; then
echo "LCD configrue 90" elif test "$1" = "180" -o "$2" = "180";then
echo "LCD configrue 180" elif test "$1" = "270" -o "$2" = "270" ;then
echo "LCD configrue 270" fi
if test "$j" = "kali" ;then echo "$kali"
fi
if [ -b /dev/mmcblk0p7 ]; then echo "true"
else echo "false"
fi
sudo cp ./inittab /etc/
if test "$#" = "0" -o "$1" = "0" -o "$1" = "90" -o "$1" = "180" -o "$1" = "270" -o "$2" = "0" -o "$2" = "90" -o "$2" = "180" -o "$2" = "270" -o "$1" = "lite" -o "$2" = "lite"; then
echo "reboot now" else echo "Invalid parameter,Usage:LCD5-show [0] [90] [180] [270] [lite]"
RaspberryPI2에 LCD Driver 설치하기(deb to rpm)
[1] Install Package
[2] Build
CMakeCache.txt 파일 수정 & cmake(line: 169, 172, 182, 245)
CMakeFiles/fbcp.dir/link.txt 파일 수정 & make & install
[3] Run Script
[4] Reference