Created
February 22, 2016 22:26
-
-
Save mweinelt/555d2586e6d25a09fbdf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/lua | |
| local uci = require 'luci.model.uci' | |
| local crs = uci.cursor() | |
| crs:delete('gluon-node-info', crs:get_first('gluon-node-info', 'owner'), 'contact') | |
| crs:save('gluon-node-info') | |
| crs:commit('gluon-node-info') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include $(TOPDIR)/rules.mk | |
| PKG_NAME:=gluon-purge-contact-info | |
| PKG_VERSION:=1 | |
| PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) | |
| define Package/gluon-purge-contact-info | |
| SECTION:=gluon | |
| CATEGORY:=Gluon | |
| TITLE:=Purge contact information from uci | |
| endef | |
| define Package/gluon-purge-contact-info/description | |
| This packages purges contact information from uci. | |
| endef | |
| define Build/Prepare | |
| mkdir -p $(PKG_BUILD_DIR) | |
| endef | |
| define Build/Configure | |
| endef | |
| define Build/Compile | |
| endef | |
| define Package/gluon-purge-contact-info/install | |
| $(CP) ./files/* $(1)/ | |
| endef | |
| $(eval $(call BuildPackage,gluon-purge-contact-info)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment