diff --git a/Arch-Linux/LCD-hdmi b/Arch-Linux/LCD-hdmi index fe3f985..0edc0a3 100755 --- a/Arch-Linux/LCD-hdmi +++ b/Arch-Linux/LCD-hdmi @@ -1,6 +1,7 @@ #!/bin/bash # Change directory to get easy access to scripts from the main directory +cd .. #dev=`grep -rn "Option" /usr/share/X11/xorg.conf.d/99-fbturbo.conf | grep "fbdev" |awk -F\" '{printf $4}'` #if test "$dev" = "/dev/fb0";then diff --git a/Arch-Linux/LCD35-show b/Arch-Linux/LCD35-show index 39e7506..33f4127 100755 --- a/Arch-Linux/LCD35-show +++ b/Arch-Linux/LCD35-show @@ -97,7 +97,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 pacman -S xf86-input-evdev + sudo pacman -S --noconfirm --needed xf86-input-evdev else echo "Evdev input driver could not be installed. Terminating and restoring." ./system_restore.sh diff --git a/system_restore.sh b/system_restore.sh index 548f4f1..6485579 100755 --- a/system_restore.sh +++ b/system_restore.sh @@ -27,6 +27,13 @@ fi ls -al ./.system_backup/*.dtb > /dev/null 2>&1 && sudo cp -rf ./.system_backup/*.dtb /boot/overlays/ ls -al ./.system_backup/*.dtbo > /dev/null 2>&1 && sudo cp -rf ./.system_backup/*.dtbo /boot/overlays/ +if [ -f /usr/share/X11/xorg.conf.d/99-fbdev.conf ]; then + sudo rm -rf /usr/share/X11/xorg.conf.d/99-fbdev.conf +fi +if [ -f /usr/share/X11/xorg.conf.d/99-fbturbo.conf ]; then + sudo rm -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf +fi + if [ -f ./.system_backup/99-fbturbo.conf ];then sudo cp -rf ./.system_backup/99-fbturbo.conf /usr/share/X11/xorg.conf.d fi