Hi,
I needed same thing and failed.
Reason is (IMHO), flashfig is not running as admin, but "*sys" - which has lower privileges. This is not enough to download .json file from ftp server.
How to reproduce:
- create skin.json (in WebFig) and upload it to FTP server
- rename it to skin.txt and upload it to FTP again
- create flashfig.rsc script which activates internet connection and at end add:
/tool fetch "ftp://my.server.com/skin.txt";
/tool fetch "ftp://my.server.com/skin.json";
- apply flashfig to router (via netinstall/flashfig) and power cycle router
- after boot, you will see downloaded skin.txt, but not skin.json
If you copy flashfig.rsc to router (without default config) as admin and import, both files downloads successfully.
In flashfig.rsc I tryed add /system script and schedule it on startup, but still running with not enough privileges.
Tested on 6.40.4
Is any way to download skin in flashfig?
Thanks.