mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
remotefs: add libmediaindex
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
b8c8819a6d
commit
8770444fd7
@ -22,6 +22,18 @@ if [ "${1}" = "late" ]; then
|
|||||||
else
|
else
|
||||||
echo "libsynosdk.so.7 not found"
|
echo "libsynosdk.so.7 not found"
|
||||||
fi
|
fi
|
||||||
|
SO_FILE="/tmpRoot/usr/lib/libmediaindex.so"
|
||||||
|
if [ -f "${SO_FILE}" ]; then
|
||||||
|
if [ ! -f "${SO_FILE}.bak" ]; then
|
||||||
|
echo "Backup ${SO_FILE}"
|
||||||
|
cp -vfp "${SO_FILE}" "${SO_FILE}.bak"
|
||||||
|
fi
|
||||||
|
echo "Patching libmediaindex.so"
|
||||||
|
PatchELFSharp "${SO_FILE}" "IndexIsPathRemoteMount" "B8 00 00 00 00 C3"
|
||||||
|
PatchELFSharp "${SO_FILE}" "IndexIsPathRemoteOrImageMount" "B8 00 00 00 00 C3"
|
||||||
|
else
|
||||||
|
echo "libmediaindex.so not found"
|
||||||
|
fi
|
||||||
elif [ "${1}" = "uninstall" ]; then
|
elif [ "${1}" = "uninstall" ]; then
|
||||||
echo "Installing addon remotefs - ${1}"
|
echo "Installing addon remotefs - ${1}"
|
||||||
|
|
||||||
@ -30,4 +42,9 @@ elif [ "${1}" = "uninstall" ]; then
|
|||||||
echo "Restore ${SO_FILE}"
|
echo "Restore ${SO_FILE}"
|
||||||
mv -f "${SO_FILE}.bak" "${SO_FILE}"
|
mv -f "${SO_FILE}.bak" "${SO_FILE}"
|
||||||
fi
|
fi
|
||||||
|
SO_FILE="/tmpRoot/usr/lib/libmediaindex.so"
|
||||||
|
if [ -f "${SO_FILE}.bak" ]; then
|
||||||
|
echo "Restore ${SO_FILE}"
|
||||||
|
mv -f "${SO_FILE}.bak" "${SO_FILE}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user