diff --git a/system_backup.sh b/system_backup.sh index 2e13416..5acdab1 100755 --- a/system_backup.sh +++ b/system_backup.sh @@ -43,7 +43,9 @@ else sudo cp -rf ./boot/config-nomal.txt /boot/config.txt #sudo cp -rf ./usr/cmdline.txt-original /boot/cmdline.txt fi +if [ -f /usr/share/X11/xorg.conf.d/99-fbturbo.conf ]; then sudo cp -rf /usr/share/X11/xorg.conf.d/99-fbturbo.conf ./.system_backup/ +fi sudo cp -rf ./usr/99-fbturbo.conf-original /usr/share/X11/xorg.conf.d/99-fbturbo.conf sudo cp -rf /etc/rc.local ./.system_backup/ sudo cp -rf ./etc/rc.local-original /etc/rc.local diff --git a/system_restore.sh b/system_restore.sh index f11c37f..46edb0f 100755 --- a/system_restore.sh +++ b/system_restore.sh @@ -27,7 +27,9 @@ 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 ./.system_backup/99-fbturbo.conf ];then sudo cp -rf ./.system_backup/99-fbturbo.conf /usr/share/X11/xorg.conf.d +fi sudo cp -rf ./.system_backup/cmdline.txt /boot/ sudo cp -rf ./.system_backup/config.txt /boot/ sudo cp -rf ./.system_backup/rc.local /etc/