Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Innsert a -y for automatical install #310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LCD154-show
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fi
#else
#echo "need to update touch configuration"
#sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
#sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
#sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
#result=`cat ./error_output.txt`
#echo -e "\033[31m$result\033[0m"
#grep -q "error:" ./error_output.txt && exit
Expand Down
2 changes: 1 addition & 1 deletion LCD24-3A+-show
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion LCD24-show
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion LCD28-show
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion LCD32-show
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion LCD35-show
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion LCD5-show
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MHS24-show
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if test $version -lt 970;then
echo "reboot"
else
echo "need to update touch configuration"
sudo apt-get install xserver-xorg-input-evdev
sudo apt-get install xserver-xorg-input-evdev -y
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
echo "reboot"
fi
Expand Down
2 changes: 1 addition & 1 deletion MHS32-show
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MHS35-show
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MHS35B-show
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MHS40-show
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MHS40C-show
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MIS35-show
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MPI3508-show
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MPI3508_480_320-show
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if test $version -lt 970;then
echo "reboot"
else
echo "need to update touch configuration"
sudo apt-get install xserver-xorg-input-evdev
sudo apt-get install xserver-xorg-input-evdev -y
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
echo "reboot"
fi
Expand Down
2 changes: 1 addition & 1 deletion MPI3510-show
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if test $version -lt 970;then
echo "reboot"
else
echo "need to update touch configuration"
sudo apt-get install xserver-xorg-input-evdev
sudo apt-get install xserver-xorg-input-evdev -y
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
echo "reboot"
fi
Expand Down
2 changes: 1 addition & 1 deletion MPI4008-show
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion MPI4009-show
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down
2 changes: 1 addition & 1 deletion NANO24-show
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ else
echo "need to update touch configuration"
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
if [ $? -eq 0 ]; then
sudo apt-get install xserver-xorg-input-evdev 2> error_output.txt
sudo apt-get install xserver-xorg-input-evdev -y 2> error_output.txt
else
sudo dpkg -i -B ./xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb 2> error_output.txt
fi
Expand Down