Page 1 of 1

Referencing a file stored on a flash disk

Posted: Sun May 15, 2016 12:40 pm
by PMTech
Hi,

I'm trying to reset my HAP AC Lite and then run a configuration script. This works on my 1100AH, 2011 etc. and I place the config file in the root. On the HAP AC Lite I have to put it in the flash directory so it survives the reboot. If I reset the device via Winbox then everything works and I get my new config. If I try it via the command line then I get an error saying
"input does not match any value of run-after-reset"
Is there something that Winbox is doing in the background to reference that file ?

Hopefully the screenshot gives you all you need to see what I'm doing.

TIA :D
ResetHAPError.JPG

Re: Referencing a file stored on a flash disk

Posted: Fri Nov 06, 2020 6:04 pm
by fork
4 and 1/2 year later: Same problem. Same question.

Solution:

File must have .rsc suffix!

Re: Referencing a file stored on a flash disk

Posted: Mon Sep 13, 2021 11:31 am
by phdoerfler
Thanks for posting your solution here, I was scratching my head at why it didn't find my script and your post gave me the needed hint: You have to remove the ".rsc" extension in the command but have to have it on the file system:
/system reset-configuration run-after-reset=provision
That works for me. Hope this helps the next person who runs into this!