Removed some extra files on system restore and fixed LCD-hdmi script by changing directory.
This commit is contained in:
parent
a9b364a26b
commit
e14a951747
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Change directory to get easy access to scripts from the main directory
|
# 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}'`
|
#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
|
#if test "$dev" = "/dev/fb0";then
|
||||||
|
|||||||
@ -97,7 +97,7 @@ else
|
|||||||
echo "need to update touch configuration"
|
echo "need to update touch configuration"
|
||||||
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
wget --spider -q -o /dev/null --tries=1 -T 10 http://mirrors.zju.edu.cn/raspbian/raspbian
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
sudo pacman -S xf86-input-evdev
|
sudo pacman -S --noconfirm --needed xf86-input-evdev
|
||||||
else
|
else
|
||||||
echo "Evdev input driver could not be installed. Terminating and restoring."
|
echo "Evdev input driver could not be installed. Terminating and restoring."
|
||||||
./system_restore.sh
|
./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/*.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/
|
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
|
if [ -f ./.system_backup/99-fbturbo.conf ];then
|
||||||
sudo cp -rf ./.system_backup/99-fbturbo.conf /usr/share/X11/xorg.conf.d
|
sudo cp -rf ./.system_backup/99-fbturbo.conf /usr/share/X11/xorg.conf.d
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user