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.

41 lines
1.5 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=5ghz-a/n/ac channel-width=20/40/80mhz-eCee \
  21. country=france disabled=no frequency=5520 mode=ap-bridge \
  22. ssid="Domaine Des Bans" wds-default-bridge=bridge wps-mode=disabled \
  23. wds-mode=disabled frequency-mode=regulatory-domain installation=outdoor \
  24. radio-name=[/system identity get name]
  25. /interface wireless security-profiles
  26. set [ find default=yes ] supplicant-identity=MikroTik
  27. /interface list
  28. add name=discover
  29. /interface list member
  30. add interface=bridge list=discover
  31. /ip neighbor discovery-settings
  32. set discover-interface-list=discover
  33. :delay 5s
  34. /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";
  35. /system package enable ipv6
  36. /system package update
  37. set channel=long-term
  38. /system package update
  39. check-for-updates once
  40. :delay 10s;
  41. :if ( [get status] = "New version is available") do={ install }