Hi every one

We are looking for a (simple and proper if possible) solution for include our configurations file (like /etc/config/* /etc/zabbix_client.conf . . .) in the OpenWRT bin (i have 80 AP to flash ...). I have tried to create a package who replace the config file, but that does not work.

Here is the makefile :

# This is a part of ENS Cachan configuration file.
#
# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=config
PKG_RELEASE:=0.1

include $(INCLUDE_DIR)/package.mk

define Package/config
 SECTION:=_ENS Cachan
 CATEGORY:=_ENS Cachan
 TITLE:=Config ENSC -- fichiers de configuration
 MAINTENER:=Vivien FRENOT <[email protected]>
DEPENDS:=+busybox +zabbix-agentd +wpad +zabbix-extra-mac80211 +zabbix-extra-network +zabbix-extra-wifi
endef

define Package/install
    echo ./firewall >> $(1)/etc/config/firewall
    $(CP) ./network $(1)/etc/config/
    $(CP) ./wireless $(1)/etc/config/
    $(CP) ./system $(1)/etc/config/
    $(CP) ./ensc.conf $(1)/etc/zabbix_agentd.conf.d/
    sed -i "s/root:x:/root:PASSWORD:/g" $(1)/etc/shadow
endef

$(eval $(call BuildPackage,config))

Any idea? Solutions?

--
Vivien FRENOT
Ecole Normale Supérieure de Cachan
Direction des Systèmes d'Information
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to