udevil: improve mount.ntfs script

Explicit mount ntfs3 fs. Avoid log spam by performing automatic
mount over all file systems. Explicit Ntfs3 module load can be
dropped.
This commit is contained in:
mglae 2023-04-02 12:23:21 +02:00
parent a09d471083
commit 0adb582098

View File

@ -28,9 +28,7 @@ post_makeinstall_target() {
cp -PR src/udevil ${INSTALL}/usr/bin
mkdir -p ${INSTALL}/usr/sbin
echo '#!/bin/sh' > ${INSTALL}/usr/sbin/mount.ntfs
echo '/usr/sbin/modprobe ntfs3' >> ${INSTALL}/usr/sbin/mount.ntfs
echo '/usr/bin/mount "$@"' >> ${INSTALL}/usr/sbin/mount.ntfs
echo -e '#!/bin/sh\nexec /usr/bin/mount -tntfs3 "$@"' > ${INSTALL}/usr/sbin/mount.ntfs
chmod 755 ${INSTALL}/usr/sbin/mount.ntfs
}