Skip to content

Commit 4cec20f

Browse files
authored
Theoretically optimized a bit of performance (#207)
1 parent 5427402 commit 4cec20f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

box/scripts/net.inotify

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ events=$1
44
# monitor_dir=$2
55
# monitor_file=$3
66

7+
[ "$events" = "w" ] && [ -f "/data/adb/box/run/box.pid" ] || exit 0
8+
79
export PATH="/data/adb/magisk:/data/adb/ksu/bin:/data/adb/ap/bin:$PATH:/system/bin"
810

911
# ex: 7.1.1
@@ -40,8 +42,4 @@ rules_add() {
4042
done
4143
}
4244

43-
if [ "$events" = "w" ]; then
44-
if [ -f "/data/adb/box/run/box.pid" ]; then
45-
rules_add
46-
fi
47-
fi
45+
rules_add

0 commit comments

Comments
 (0)