delay automount at firstboot

This commit is contained in:
coolsnowwolf 2017-09-22 00:59:17 +08:00
parent a92680efc5
commit bbda2b1f37
2 changed files with 11 additions and 3 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=automount
PKG_VERSION:=1
PKG_RELEASE:=16
PKG_RELEASE:=18
PKG_ARCH:=all
include $(INCLUDE_DIR)/package.mk
@ -28,8 +28,9 @@ define Build/Compile
endef
define Package/automount/install
$(INSTALL_DIR) $(1)/etc/hotplug.d/block
$(INSTALL_BIN) ./files/15-automount $(1)/etc/hotplug.d/block/15-automount
$(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))

View File

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