From ef78cb7a993da830221afbb6751d5c7677d33875 Mon Sep 17 00:00:00 2001 From: Victor Bo Date: Tue, 11 Jun 2019 04:58:49 +0000 Subject: [PATCH] fp-gestures: don't change if exists bad idea to delete users changes after reboot no need to anger users:) modified: rw-system.sh --- rw-system.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index dcb00b9..24a15ea 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -72,11 +72,16 @@ changeKeylayout() { -e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl \ -e xiaomi/nitrogen -e xiaomi/daisy -e xiaomi/sakura \ -e xiaomi/whyred -e xiaomi/tulip; then - cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl - chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl - cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl - chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl - changed=true + if [ ! -f /mnt/phh/keylayout/uinput-goodix.kl ]; then + cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl + chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl + changed=true + fi + if [ ! -f /mnt/phh/keylayout/uinput-fpc.kl ]; then + cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl + chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl + changed=true + fi fi if getprop ro.vendor.build.fingerprint | grep -qi oneplus/oneplus6/oneplus6; then