diff options
author | Rosy Song <rosysong@rosinson.com> | 2018-05-02 10:48:36 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-05-02 09:18:27 +0200 |
commit | fd569e5e9d0a46ea957cb253e97a4b3ea8c2c540 (patch) | |
tree | 9c2a6ec223a2318b4f829143d31875deaef7d82e /package/network/services/samba36/Makefile | |
parent | 2c4294f78612d038a2b130171fe25ed8e6569bae (diff) | |
download | upstream-fd569e5e9d0a46ea957cb253e97a4b3ea8c2c540.tar.gz upstream-fd569e5e9d0a46ea957cb253e97a4b3ea8c2c540.tar.bz2 upstream-fd569e5e9d0a46ea957cb253e97a4b3ea8c2c540.zip |
samba36: add hotplug support
Add hotplug handle script for storage devices,
this will add corresponding option in the
/etc/config/samba file automatically.
Signed-off-by: Rosy Song <rosysong@rosinson.com>
Diffstat (limited to 'package/network/services/samba36/Makefile')
-rw-r--r-- | package/network/services/samba36/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/network/services/samba36/Makefile b/package/network/services/samba36/Makefile index 30e26195ff..39bfcc6c4f 100644 --- a/package/network/services/samba36/Makefile +++ b/package/network/services/samba36/Makefile @@ -43,6 +43,12 @@ define Package/samba36-server DEPENDS:=+USE_GLIBC:librt $(ICONV_DEPENDS) endef +define Package/samba36-hotplug + $(call Package/samba/Default) + TITLE+= hotplug + DEPENDS:=+block-mount +endef + define Package/samba36-client $(call Package/samba/Default) TITLE+= client @@ -159,6 +165,13 @@ define Package/samba36-server/install $(LN) samba_multicall $(1)/usr/sbin/smbpasswd endef +define Package/samba36-hotplug/install + $(INSTALL_DIR) $(1)/lib/samba + $(INSTALL_DATA) ./files/lib/samba.sh $(1)/lib/samba/samba.sh + $(INSTALL_DIR) $(1)/etc/hotplug.d/block + $(INSTALL_DATA) ./files/samba.hotplug $(1)/etc/hotplug.d/block/60-samba +endef + define Package/samba36-client/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_BIN)/smbclient $(1)/usr/sbin @@ -172,5 +185,6 @@ endef $(eval $(call BuildPackage,samba36-client)) $(eval $(call BuildPackage,samba36-server)) +$(eval $(call BuildPackage,samba36-hotplug)) $(eval $(call BuildPackage,samba36-net)) |