From 7aae2c39ea7ba7758ad7ea87a641c40b828771ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20W=C3=B6hrer?= Date: Wed, 12 Jan 2022 16:31:10 +0100 Subject: [PATCH] Innsert a -y for automatical install --- LCD154-show | 2 +- LCD24-3A+-show | 2 +- LCD24-show | 2 +- LCD28-show | 2 +- LCD32-show | 2 +- LCD35-show | 2 +- LCD5-show | 2 +- MHS24-show | 2 +- MHS32-show | 2 +- MHS35-show | 2 +- MHS35B-show | 2 +- MHS40-show | 2 +- MHS40C-show | 2 +- MIS35-show | 2 +- MPI3508-show | 2 +- MPI3508_480_320-show | 2 +- MPI3510-show | 2 +- MPI4008-show | 2 +- MPI4009-show | 2 +- NANO24-show | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/LCD154-show b/LCD154-show index f2c49fa..d623379 100755 --- a/LCD154-show +++ b/LCD154-show @@ -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 diff --git a/LCD24-3A+-show b/LCD24-3A+-show index f3adaee..1386294 100755 --- a/LCD24-3A+-show +++ b/LCD24-3A+-show @@ -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 diff --git a/LCD24-show b/LCD24-show index 01b1c7a..a946f6b 100755 --- a/LCD24-show +++ b/LCD24-show @@ -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 diff --git a/LCD28-show b/LCD28-show index 01b1c7a..a946f6b 100755 --- a/LCD28-show +++ b/LCD28-show @@ -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 diff --git a/LCD32-show b/LCD32-show index 01b1c7a..a946f6b 100755 --- a/LCD32-show +++ b/LCD32-show @@ -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 diff --git a/LCD35-show b/LCD35-show index f5288cf..d14b4c0 100755 --- a/LCD35-show +++ b/LCD35-show @@ -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 diff --git a/LCD5-show b/LCD5-show index 4654184..85214f8 100755 --- a/LCD5-show +++ b/LCD5-show @@ -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 diff --git a/MHS24-show b/MHS24-show index cbb9cd3..ff8b8db 100755 --- a/MHS24-show +++ b/MHS24-show @@ -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 diff --git a/MHS32-show b/MHS32-show index 8ff0809..a70c343 100755 --- a/MHS32-show +++ b/MHS32-show @@ -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 diff --git a/MHS35-show b/MHS35-show index 1b3655b..ccc57ff 100755 --- a/MHS35-show +++ b/MHS35-show @@ -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 diff --git a/MHS35B-show b/MHS35B-show index a11d4f5..1de39bd 100755 --- a/MHS35B-show +++ b/MHS35B-show @@ -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 diff --git a/MHS40-show b/MHS40-show index 9731dbf..d52694a 100755 --- a/MHS40-show +++ b/MHS40-show @@ -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 diff --git a/MHS40C-show b/MHS40C-show index 5b65455..9f93dd4 100755 --- a/MHS40C-show +++ b/MHS40C-show @@ -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 diff --git a/MIS35-show b/MIS35-show index a243f70..6389733 100755 --- a/MIS35-show +++ b/MIS35-show @@ -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 diff --git a/MPI3508-show b/MPI3508-show index aafbe34..686ef9b 100755 --- a/MPI3508-show +++ b/MPI3508-show @@ -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 diff --git a/MPI3508_480_320-show b/MPI3508_480_320-show index c3c2829..f3913b0 100755 --- a/MPI3508_480_320-show +++ b/MPI3508_480_320-show @@ -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 diff --git a/MPI3510-show b/MPI3510-show index 2ce75b7..ff76c2c 100755 --- a/MPI3510-show +++ b/MPI3510-show @@ -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 diff --git a/MPI4008-show b/MPI4008-show index 9f9aeb8..8a46f84 100755 --- a/MPI4008-show +++ b/MPI4008-show @@ -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 diff --git a/MPI4009-show b/MPI4009-show index cdbc823..cdd11b9 100755 --- a/MPI4009-show +++ b/MPI4009-show @@ -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 diff --git a/NANO24-show b/NANO24-show index 4f22698..8c9af38 100755 --- a/NANO24-show +++ b/NANO24-show @@ -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