ubox: add a uci-default script for fstab generation

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37199
This commit is contained in:
John Crispin 2013-07-08 09:01:42 +00:00
parent fc40051569
commit f60cb8c3d9
2 changed files with 3 additions and 1 deletions

View file

@ -48,9 +48,10 @@ define Package/ubox/install
endef
define Package/block-mount/install
$(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/etc/hotplug.d/block $(1)/etc/init.d/
$(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/etc/hotplug.d/block $(1)/etc/init.d/ $(1)/etc/uci-defaults/
$(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
$(INSTALL_DATA) ./files/fstab.default $(1)/etc/uci-defaults/10-fstab
$(INSTALL_DATA) ./files/mount.hotplug $(1)/etc/hotplug.d/block/10-mount
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/block $(1)/sbin/

View file

@ -0,0 +1 @@
[ ! -f /etc/config/fstab ] && ( block detect > /etc/config/fstab )