Skip to content

Commit

Permalink
Merge pull request #49 from opentechinstitute/collision-fix
Browse files Browse the repository at this point in the history
added uci-defaults script to luci-commotion-apps

tested by areynold
  • Loading branch information
areynold committed Mar 5, 2014
2 parents 2389152 + 1c65f42 commit cf19d1b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/luci-commotion-apps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ define Package/$(PKG_NAME)/install
$(CP) $(PKG_BUILD_DIR)/luci-static/$(THEME_NAME)/* $(1)/www/luci-static/$(THEME_NAME)/ || true
$(INSTALL_DIR) $(1)/usr/lib/lua
$(CP) $(PKG_BUILD_DIR)/lua/* $(1)/usr/lib/lua/ || true
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uci-defaults/* $(1)/etc/uci-defaults/
endef

define Package/$(PKG_NAME)/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/$(PKG_NAME) ) && rm -f /etc/uci-defaults/$(PKG_NAME)
}
endef

$(eval $(call BuildPackage,$(PKG_NAME)))

0 comments on commit cf19d1b

Please sign in to comment.