# jan/02/1970 00:01:01 by RouterOS 6.48.7 # software id = IZL7-N9S2 # # this will detect the version of the board and then call the correct reset script # Version 1.0.0 :local model :set $model [/system resource get board-name] :if ($model~"3011") do={ :put $model :if ([:len [/file find where name~"RB3011CeDefaults.rsc"]] > 0) do={ :put "Found RB3011 script so will do reset now" /system reset-configuration no-defaults=yes run-after-reset=RB3011CeDefaults.rsc #:execute "/system reset-configuration no-defaults=yes run-after-reset=RB3011CeDefaults.rsc" } else={ :put "Error missing RB3011 script will not reset-configuration!! "; } } else={ :if ($model~"hEX S") do={ :put $model :if ([:len [/file find where name~"flash/Hex5CeDefaults.rsc"]] > 0) do={ :put "Found Hex5 script file so will do reset now." /system reset-configuration no-defaults=yes run-after-reset=flash/Hex5CeDefaults.rsc #:execute "/system reset-configuration no-defaults=yes run-after-reset=flash/Hex5CeDefaults.rsc" } else={ :put "Error missing flash/Hex5CeDefaults script will not reset-configuration!! "; } } }