From c34f9e8571d9c62fb1548b4e769afb3241d390dd Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Fri, 5 Jun 2020 15:10:43 +0200 Subject: [PATCH] Added : Powerbox update Set identify from file A little wireless tuning --- routeros/powerbox-init.rsc | 8 ++++++++ routeros/rbmetal2-init.rsc | 3 ++- routeros/rbmetal5-init.rsc | 7 ++++--- routeros/sxt5ac-init.rsc | 4 +++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/routeros/powerbox-init.rsc b/routeros/powerbox-init.rsc index fe3a8bc..7dc3ae4 100644 --- a/routeros/powerbox-init.rsc +++ b/routeros/powerbox-init.rsc @@ -7,6 +7,7 @@ add bridge=bridge interface=ether2 add bridge=bridge interface=ether3 add bridge=bridge interface=ether4 add bridge=bridge interface=ether5 +/system identity set name=[/file get flash/name.txt contents] /ip dhcp-client add dhcp-options=hostname,clientid disabled=no interface=bridge /ip service @@ -18,3 +19,10 @@ set api disabled=yes set time-zone-name=Europe/Paris /system ntp client set enabled=yes server-dns-names=fr.pool.ntp.org +/system package enable ipv6 +/system package update +set channel=long-term +/system package update +check-for-updates once +:delay 5s; +:if ( [get status] = "New version is available") do={ install } diff --git a/routeros/rbmetal2-init.rsc b/routeros/rbmetal2-init.rsc index ed194cb..e431d56 100644 --- a/routeros/rbmetal2-init.rsc +++ b/routeros/rbmetal2-init.rsc @@ -4,6 +4,7 @@ add name=bridge /interface bridge port add bridge=bridge interface=wlan1 add bridge=bridge interface=ether1 +/system identity set name=[/file get flash/name.txt contents] /ip dhcp-client add dhcp-options=hostname,clientid disabled=no interface=bridge /ip service @@ -19,7 +20,7 @@ set enabled=yes server-dns-names=fr.pool.ntp.org set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \ country=no_country_set disabled=no frequency=auto installation=outdoor \ mode=ap-bridge ssid="Domaine Des Bans" wds-default-bridge=\ - bridge wds-mode=dynamic-mesh wps-mode=disabled + bridge wds-mode=disabled wps-mode=disabled radio-name=[/system identity get name] /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik :delay 5s diff --git a/routeros/rbmetal5-init.rsc b/routeros/rbmetal5-init.rsc index 1030508..5a93101 100644 --- a/routeros/rbmetal5-init.rsc +++ b/routeros/rbmetal5-init.rsc @@ -4,6 +4,7 @@ add name=bridge /interface bridge port add bridge=bridge interface=wlan1 add bridge=bridge interface=ether1 +/system identity set name=[/file get flash/name.txt contents] /ip dhcp-client add dhcp-options=hostname,clientid disabled=no interface=bridge /ip service @@ -16,9 +17,9 @@ set time-zone-name=Europe/Paris /system ntp client set enabled=yes server-dns-names=fr.pool.ntp.org /interface wireless -set [ find default-name=wlan1 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-eCee country=france disabled=no \ - frequency=5520 mode=ap-bridge ssid="Domaine Des Bans" wds-default-bridge=bridge wds-mode=\ - dynamic-mesh wps-mode=disabled frequency-mode=regulatory-domain +set [ find default-name=wlan1 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-eCee \ + country=france disabled=no frequency=5520 mode=ap-bridge radio-name=[/system identity get name] \ + ssid="Domaine Des Bans" wds-default-bridge=bridge wps-mode=disabled installation=outdoor /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik :delay 5s diff --git a/routeros/sxt5ac-init.rsc b/routeros/sxt5ac-init.rsc index ab6c03e..ce1ab67 100644 --- a/routeros/sxt5ac-init.rsc +++ b/routeros/sxt5ac-init.rsc @@ -4,6 +4,7 @@ add name=bridge /interface bridge port add bridge=bridge interface=wlan1 add bridge=bridge interface=ether1 +/system identity set name=[/file get flash/name.txt contents] /ip dhcp-client add dhcp-options=hostname,clientid disabled=no interface=bridge /ip service @@ -19,7 +20,8 @@ set enabled=yes server-dns-names=fr.pool.ntp.org set [ find default-name=wlan1 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-eCee \ country=france disabled=no frequency=5520 mode=ap-bridge \ ssid="Domaine Des Bans" wds-default-bridge=bridge wds-mode=dynamic-mesh \ - wps-mode=disabled frequency-mode=regulatory-domain + wps-mode=disabled frequency-mode=regulatory-domain installation=outdoor \ + radio-name=[/system identity get name] /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik :delay 5s