automount: use ntfs3 for kernel 5.15

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2022-03-29 20:11:39 +08:00
parent d182815282
commit cd26f83546
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 31 additions and 12 deletions

View File

@ -14,6 +14,7 @@ PKG_RELEASE:=$(COMMITCOUNT)
PKG_CONFIG_DEPENDS:= \
CONFIG_LINUX_5_4 \
CONFIG_LINUX_5_10 \
CONFIG_LINUX_5_15 \
CONFIG_TARGET_ramips
include $(INCLUDE_DIR)/package.mk
@ -21,23 +22,43 @@ include $(INCLUDE_DIR)/package.mk
define Package/automount
TITLE:=Mount autoconfig hotplug script.
MAINTAINER:=Lean
DEPENDS:=+block-mount +kmod-usb-storage +kmod-usb-storage-extras +!TARGET_ramips:kmod-usb-storage-uas \
+kmod-fs-vfat +kmod-fs-ext4 +LINUX_5_4:kmod-fs-exfat0 +!LINUX_5_4:kmod-fs-exfat +ntfs-3g
DEPENDS:= \
+block-mount \
+kmod-usb-storage \
+kmod-usb-storage-extras \
+!TARGET_ramips:kmod-usb-storage-uas \
+kmod-fs-ext4 \
+!LINUX_5_4:kmod-fs-exfat \
+LINUX_5_4:kmod-fs-exfat0 \
+kmod-fs-vfat
+!LINUX_5_15:ntfs-3g
+LINUX_5_15:ntfs3-mount
PKGARCH:=all
endef
define Package/automount/description
A usb autoconfig hotplug script.
define Package/ntfs3-mount
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Filesystem
TITLE:=NTFS mount script for Paragon NTFS3 driver
DEPENDS:=+kmod-fs-ntfs3
CONFLICTS:=ntfs-3g
VARIANT:=ntfs3-mount
PKGARCH:=all
endef
define Build/Compile
true
endef
define Package/automount/install
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/15-automount $(1)/etc/15-automount
$(INSTALL_BIN) ./files/zzz-move-automount $(1)/etc/uci-defaults/zzz-move-automount
$(INSTALL_DIR) $(1)/etc/hotplug.d/block
$(INSTALL_BIN) ./files/15-automount $(1)/etc/hotplug.d/block/
endef
define Package/ntfs3-mount/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) ./files/mount.ntfs $(1)/sbin
endef
$(eval $(call BuildPackage,automount))
$(eval $(call BuildPackage,ntfs3-mount))

View File

@ -0,0 +1,2 @@
#!/bin/sh
mount -t ntfs3 -o iocharset=utf8 "$@"

View File

@ -1,4 +0,0 @@
#!/bin/sh
sleep 15
mv /etc/15-automount /etc/hotplug.d/block/