You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. :delay 15s
  2. /interface bridge
  3. add name=bridge
  4. /interface bridge port
  5. add bridge=bridge interface=wlan1
  6. add bridge=bridge interface=ether1
  7. /system identity set name=[/file get flash/name.txt contents]
  8. /ip dhcp-client
  9. add dhcp-options=hostname,clientid disabled=no interface=bridge
  10. /ip service
  11. set telnet disabled=yes
  12. set ftp disabled=yes
  13. set www disabled=yes
  14. set api disabled=yes
  15. /system clock
  16. set time-zone-name=Europe/Paris
  17. /system ntp client
  18. set enabled=yes server-dns-names=fr.pool.ntp.org
  19. /interface wireless
  20. set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
  21. country=no_country_set disabled=no frequency=auto installation=outdoor \
  22. mode=ap-bridge ssid="Domaine Des Bans" wds-default-bridge=\
  23. bridge wds-mode=disabled wps-mode=disabled radio-name=[/system identity get name]
  24. /interface wireless security-profiles
  25. set [ find default=yes ] supplicant-identity=MikroTik
  26. /interface list
  27. add name=discover
  28. /interface list member
  29. add interface=bridge list=discover
  30. /ip neighbor discovery-settings
  31. set discover-interface-list=discover
  32. :delay 5s
  33. /tool fetch url="https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/routeros/add-music.rsc" dst-path=add-music.rsc; /import add-music.rsc; /system script run "Music: Thunderstruck";
  34. /system package enable ipv6
  35. /system package update
  36. set channel=long-term
  37. /system package update
  38. check-for-updates once
  39. :delay 10s;
  40. :if ( [get status] = "New version is available") do={ install }