Comments (1)
- LCD-show/LCD5-show 테스트 스크립트
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
#echo "$var1"
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 apt-get install xserver-xorg-input-evdev
# 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"
# sudo cp -rf ./nes /home/pi/RetroPie/roms/
fi
echo "1" > ./boot/mark
# sudo dpkg -i -B ./xinput-calibrator_0.7.5-1_armhf.deb
# sudo apt-get install cmake -y
# cd ./rpi-fbcp/build/
# sudo cmake ..
# sudo make
# sudo install fbcp /usr/local/bin/fbcp
# cd ../../
# sudo mkdir -p /usr/share/X11/xorg.conf.d
elif test "$var1" = "0" -a "$1" = "lite" ;then
echo "test: $test"
echo "1" > ./boot/mark
# echo "No touch driver installled"
# echo "No fbcp driver installled"
# sudo mkdir -p /usr/share/X11/xorg.conf.d
fi
# sudo cp -rf ./etc/rc.local /etc/rc.local
if test "$1" = "0" -o "$#" = "0" -o "$2" = "0"; then
# sudo cp -rf ./etc/X11/xorg.conf.d/99-calibration.conf-5 /usr/share/X11/xorg.conf.d/99-calibration.conf
# sudo cp ./boot/config-5.txt /boot/config.txt
echo "LCD configrue 0" #real
elif test "$1" = "lite" -a "$#" = "1"; then
# sudo cp -rf ./etc/X11/xorg.conf.d/99-calibration.conf-5 /usr/share/X11/xorg.conf.d/99-calibration.conf
# sudo cp ./boot/config-5.txt /boot/config.txt
echo "LCD configrue 0"
elif test "$1" = "90" -o "$2" = "90"; then
# sudo cp -rf ./etc/X11/xorg.conf.d/99-calibration.conf-5-90 /usr/share/X11/xorg.conf.d/99-calibration.conf
# sudo cp ./boot/config-5.txt-90 /boot/config.txt
echo "LCD configrue 90"
elif test "$1" = "180" -o "$2" = "180";then
# sudo cp -rf ./etc/X11/xorg.conf.d/99-calibration.conf-5-180 /usr/share/X11/xorg.conf.d/99-calibration.conf
# sudo cp ./boot/config-5.txt-180 /boot/config.txt
echo "LCD configrue 180"
elif test "$1" = "270" -o "$2" = "270" ;then
# sudo cp -rf ./etc/X11/xorg.conf.d/99-calibration.conf-5-270 /usr/share/X11/xorg.conf.d/99-calibration.conf
# sudo cp ./boot/config-5.txt-270 /boot/config.txt
echo "LCD configrue 270"
fi
# sudo cp -rf ./usr/share/X11/xorg.conf.d/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
if test "$j" = "kali" ;then
echo "$kali"
# sudo cp ./usr/share/X11/xorg.conf.d/99-fbturbo.conf-kali-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf
fi
if [ -b /dev/mmcblk0p7 ]; then
echo "true"
# sudo cp ./cmdline.txt-noobs /boot/cmdline.txt
else
echo "false"
# sudo cp ./cmdline.txt /boot/
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
# sudo reboot
echo "reboot now"
else
echo "Invalid parameter,Usage:LCD5-show [0] [90] [180] [270] [lite]"
from note.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from note.