Commit e3d43a20 authored by Hamza Dely's avatar Hamza Dely
Browse files

La configuration des LEDs peut être spécifiée dans /etc/config/system.* pour chaque type de borne

parent 11c52c18
......@@ -20,15 +20,19 @@ include $(INCLUDE_DIR)/package.mk
SECRET:=$(shell PYTHONPATH=/etc/crans/secrets/ python -c "import secrets; print secrets.radius_eap_key")
# Pour installer network, il faut regarder quel est le type de borne ciblé
# Pour installer les confs spécifiques, il faut regarder quel est le type de borne ciblé
ifeq ($(CONFIG_TARGET_ar71xx_generic_ESR1750),y)
NETWORKFILE:="network.esr1750"
SYSTEMFILE:="system.esr1750"
else ($(CONFIG_TARGET_ar71xx_generic_UAPPRO),y)
NETWORKFILE:="network.uap_pro"
SYSTEMFILE:="system"
else ($(CONFIG_TARGET_ar71xx_generic_TLWR841),y)
NETWORKFILE:="network.tl_wr841nd"
SYSTEMFILE:="system.tl_wr841nd"
else
NETWORKFILE:="network"
SYSTEMFILE:="system"
endif
define Package/base-files/conffiles
......@@ -67,7 +71,7 @@ define Package/crans/install
$(INSTALL_DIR) $(1)/etc/config/
$(INSTALL_DATA) files/etc/config/dhcp $(1)/etc/config/dhcp
$(INSTALL_DATA) files/etc/config/$(NETWORKFILE) $(1)/etc/config/network
$(INSTALL_DATA) files/etc/config/system $(1)/etc/config/system
$(INSTALL_DATA) files/etc/config/$(SYSTEMFILE) $(1)/etc/config/system
$(INSTALL_DATA) files/etc/config/dropbear $(1)/etc/config/dropbear
install -d -m0700 $(1)/etc/dropbear/
$(INSTALL_CONF) files/etc/dropbear/authorized_keys $(1)/etc/dropbear/authorized_keys
......
config system
option timezone 'CET-1CEST'
option zonename 'Europe/Paris'
option log_type file
# thot.crans.org
option log_ip '10.231.148.38'
option log_file /dev/null
config timeserver ntp
option enable_server 0
list server ntp.crans.org
config led 'wlan2g'
option name 'WLAN 2.4 GHz'
option sysfs 'esr1750:blue:wlan-2g'
option trigger 'phy0tpt'
config led 'wlan5g'
option name 'WLAN 5 GHz'
option sysfs 'esr1750:blue:wlan-5g'
option trigger 'phy1tpt'
config system
option timezone 'CET-1CEST'
option zonename 'Europe/Paris'
option log_type file
# thot.crans.org
option log_ip '10.231.148.38'
option log_file /dev/null
config timeserver ntp
option enable_server 0
list server ntp.crans.org
config led 'led_wan'
option name 'WAN'
option sysfs 'tp-link:green:wan'
option trigger 'netdev'
option dev 'eth1'
option mode 'link tx rx'
config led 'led_lan1'
option name 'LAN1'
option sysfs 'tp-link:green:lan1'
option trigger 'switch0'
option port_mask '0x10'
config led 'led_lan2'
option name 'LAN2'
option sysfs 'tp-link:green:lan2'
option trigger 'switch0'
option port_mask '0x08'
config led 'led_lan3'
option name 'LAN3'
option sysfs 'tp-link:green:lan3'
option trigger 'switch0'
option port_mask '0x04'
config led 'led_lan4'
option name 'LAN4'
option sysfs 'tp-link:green:lan4'
option trigger 'switch0'
option port_mask '0x02'
config led 'led_wlan'
option name 'WLAN'
option sysfs 'tp-link:green:wlan'
option trigger 'phy0tpt'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment