The script is here: https://github.com/Magisk-Modules-Repo/com.piyushgarg.rclone/blob/master/binary/syncd.sh
The code that I do not believe is working is this:
while true; do
if [[ ! -e ${SYNC_PENDING} ]]; then
${HOME}/inotifywait "/storage/emulated/${PROFILE}/${SYNCDIR}" -e modify,create,moved_to,close_write -q >> /dev/null 2>&1 && touch ${SYNC_PENDING}
fi
When I execute the inotifywait
binary as a standalone, I get this message:
CANNOT LINK EXECUTABLE "inotifywait": library "libnotifytools.so" not found.
Does this indicate that I am missing a library? How can I solve the issue?
busybox inotifyd
orinotifywait
from commandline: https://android.stackexchange.com/a/209585/218526. Here is the statically linkedinotifywait
binary for aarch64: https://androidfilehost.com/?fid=10763459528675584729 – Irfan Latif Nov 15 '20 at 23:32