2019-11-08 22:57:22 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=automount
|
2020-03-17 16:08:23 +08:00
|
|
|
PKG_VERSION:=2
|
2020-03-08 13:54:49 +08:00
|
|
|
PKG_RELEASE:=30
|
2019-11-08 22:57:22 +08:00
|
|
|
PKG_ARCH:=all
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/automount
|
|
|
|
TITLE:=Mount autoconfig hotplug script.
|
|
|
|
MAINTAINER:=Lean
|
2020-03-17 16:08:23 +08:00
|
|
|
DEPENDS:=+block-mount +kmod-usb-storage +kmod-usb-storage-extras +kmod-fs-vfat +kmod-fs-ext4 +@(LINUX_4_14||LINUX_4_19):kmod-fs-exfat0 +@LINUX_5_4:kmod-fs-exfat +ntfs-3g
|
2019-11-08 22:57:22 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/automount/description
|
|
|
|
A usb autoconfig hotplug script.
|
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,automount))
|