antfs-mount: mount script for antfs 11154/head
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Mon, 10 Feb 2020 14:49:32 +0000 (22:49 +0800)
committerDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Sun, 15 Mar 2020 05:26:57 +0000 (13:26 +0800)
block-mount needs "mount.ntfs" script to mount NTFS drives

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
utils/antfs-mount/Makefile [new file with mode: 0644]
utils/antfs-mount/files/mount.ntfs [new file with mode: 0644]

diff --git a/utils/antfs-mount/Makefile b/utils/antfs-mount/Makefile
new file mode 100644 (file)
index 0000000..48ffc6f
--- /dev/null
@@ -0,0 +1,28 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=antfs-mount
+PKG_RELEASE:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/antfs-mount
+       SECTION:=utils
+       CATEGORY:=Utilities
+       SUBMENU:=Filesystem
+       TITLE:=NTFS mount script for AVM NTFS driver
+       PKGARCH:=all
+       DEPENDS:=+kmod-fs-antfs
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+endef
+
+define Package/antfs-mount/install
+       $(INSTALL_DIR) $(1)/sbin
+       $(INSTALL_BIN) ./files/mount.ntfs $(1)/sbin
+endef
+
+$(eval $(call BuildPackage,antfs-mount))
diff --git a/utils/antfs-mount/files/mount.ntfs b/utils/antfs-mount/files/mount.ntfs
new file mode 100644 (file)
index 0000000..e97709a
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+mount -t antfs "$@"