profile-valsamoggia.ninux.org-vs-ninux-generic
Generic valsamoggia configuration
Makefile
include $(TOPDIR)/rules.mk
PROFILE_DESCRIPTION:=Generic valsamoggia configuration
PROFILE_DEPENDS:= +prometheus-node-exporter-lua \
+prometheus-node-exporter-lua-wifi \
+prometheus-node-exporter-lua-wifi_stations \
+prometheus-node-exporter-lua-openwrt \
+lime-proto-babeld \
+lime-proto-batadv \
+lime-proto-anygw \
+lime-proto-wan \
+lime-hwd-openwrt-wan \
+shared-state \
+hotplug-initd-services \
+shared-state-babeld_hosts \
+shared-state-bat_hosts \
+shared-state-dnsmasq_hosts \
+shared-state-dnsmasq_leases \
+shared-state-nodes_and_links \
+check-date-http \
+lime-app \
+lime-hwd-ground-routing \
+lime-debug \
+luci
include ../../profile.mk
# call BuildPackage - OpenWrt buildroot signaturelime-community
config lime system
option hostname 'ninux-%M4%M5%M6'
option domain 'valsamoggia.ninux.org'
option keep_on_upgrade 'libremesh base-files-essential /etc/sysupgrade.conf'
config lime network
option primary_interface 'eth0'
option main_ipv4_address '10.170.128.0/16/17'
option anygw_dhcp_start '5120'
option anygw_dhcp_limit '27648'
option main_ipv6_address 'fd%N1:%N2%N3:%N4%N5::/64'
list protocols ieee80211s
list protocols lan
list protocols anygw
list protocols batadv:%N1
list protocols babeld:17
list resolvers 4.2.2.2 # b.resolvers.Level3.net
list resolvers 141.1.1.1 # cns1.cw.net
list resolvers 2001:470:20::2 # ordns.he.net
option anygw_mac "aa:aa:aa:%N1:%N2:aa"
option use_odhcpd false
config lime wifi
option channel_2ghz '11'
option channel_5ghz '48'
option htmode_5ghz 'HT40'
option distance_2ghz '1000'
option distance_5ghz '10000'
list modes 'ap'
list modes 'apname'
list modes 'ieee80211s'
option ap_ssid 'ninux'
option apname_ssid 'ninux/%H'
option ieee80211s_mesh_fwding '0'
option ieee80211s_mesh_id 'LiMe'
config generic_uci_config prometheus
list uci_set "prometheus-node-exporter-lua.main.listen_interface=lan"
list uci_set "prometheus-node-exporter-lua.main.listen_ipv6=0"
list uci_set "prometheus-node-exporter-lua.main.listen_port=9090"
config run_asset prometheus_enable
option asset 'community/prometheus_enable'
option when 'ATFIRSTBOOT'
config run_asset cron_reboot
option asset 'community/cron_reboot'
option when 'ATFIRSTBOOT'
config generic_uci_config dropbear
list uci_set "dropbear.@dropbear[0].RootPasswordAuth=off"
config copy_asset authorized_keys
option asset 'community/authorized_keys'
option dst '/etc/dropbear'
config run_asset fix_authorized_keys_permissions
option asset 'community/fix_authorized_keys_permissions'
option when 'ATCONFIG'lime-node
config lime 'system'
# option hostname 'ninux-%M4%M5%M6'
config lime 'network'
config lime 'wifi'
# option channel_5ghz '48'
# option distance_5ghz '8000'