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.

28 lines
792 B

5 years ago
  1. :delay 15s
  2. /interface bridge
  3. add name=bridge
  4. /interface bridge port
  5. add bridge=bridge interface=ether1
  6. add bridge=bridge interface=ether2
  7. add bridge=bridge interface=ether3
  8. add bridge=bridge interface=ether4
  9. add bridge=bridge interface=ether5
  10. /system identity set name=[/file get flash/name.txt contents]
  11. /ip dhcp-client
  12. add dhcp-options=hostname,clientid disabled=no interface=bridge
  13. /ip service
  14. set telnet disabled=yes
  15. set ftp disabled=yes
  16. set www disabled=yes
  17. set api disabled=yes
  18. /system clock
  19. set time-zone-name=Europe/Paris
  20. /system ntp client
  21. set enabled=yes server-dns-names=fr.pool.ntp.org
  22. /system package enable ipv6
  23. /system package update
  24. set channel=long-term
  25. /system package update
  26. check-for-updates once
  27. :delay 5s;
  28. :if ( [get status] = "New version is available") do={ install }