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.

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