Removed some extra files on system restore and fixed LCD-hdmi script by changing directory.

This commit is contained in:
Bennett-Wendorf 2022-01-09 17:01:41 -06:00
parent a9b364a26b
commit e14a951747
3 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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