Skip to content

Commit

Permalink
scripts/uninstall: simplify symlink delete
Browse files Browse the repository at this point in the history
its only for APatch and KernelSU, not worth to loop
  • Loading branch information
backslashxx committed Dec 16, 2024
1 parent 21f29a8 commit 538bcaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh
# delete settings
rm -rf /data/adb/bindhosts
# delete symlink
manager_paths="/data/adb/ap/bin /data/adb/ksu/bin"
for i in $manager_paths; do rm -f $i/bindhosts ; done
# delete symlink, ap/ksu
rm /data/adb/ap/bin/bindhosts
rm /data/adb/ksu/bin/bindhosts
# cleanup for helper modes
# hfr
[ -f /data/adb/hosts ] && printf "127.0.0.1 localhost\n::1 localhost\n" > /data/adb/hosts
Expand Down

0 comments on commit 538bcaa

Please sign in to comment.