automount: simplified installation

(cherry picked from commit fa6210cba38b26d3b60bcd9a832e274c17114abe)
This commit is contained in:
AmadeusGhost 2021-10-09 23:54:02 +08:00 committed by Tianling Shen
parent 7b5d8daf13
commit 2b92d89445
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 4 additions and 9 deletions

View File

@ -18,8 +18,8 @@ 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 +kmod-fs-exfat +ntfs-3g
DEPENDS:=+block-mount +kmod-fs-exfat +kmod-fs-ext4 +kmod-fs-vfat +ntfs-3g \
+kmod-usb-storage +kmod-usb-storage-extras +!TARGET_ramips:kmod-usb-storage-uas
PKGARCH:=all
endef
@ -32,9 +32,8 @@ define Build/Compile
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
$(eval $(call BuildPackage,automount))

View File

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