I'm trying to run a script to properly set the CPU back to its proper setting after kernel failure.
I want to schedule this to run on startup but can't seem to get it to work. If I remove the "/system reboot;" string it works fine and all is well. It's almost as if the reboot happens and doesn't give it enough time to process the change. Any ideas?
Appreciate any help!
:global test 0
:global test1 400MHz
:global test2 600MHz
:set test ([/system routerboard settings get cpu-frequency])
:if ($test = $test1) do= {[/system routerboard setting set cpu-frequency=$test2] , [/system routerboard setting set silent-boot=yes] , [/system reboot;] }