Hi, Thanks very much for all your replies.
I'll try to do some like that. Maybe an "uci get system.@system [0].fistboot". []s Ronaldo 2016-07-14 3:41 GMT-03:00 Rafał Miłecki <zaj...@gmail.com>: > On 13 July 2016 at 22:27, Ronaldo Afonso <rona...@ronaldoafonso.com.br> > wrote: > > More specifically, my scripts at "/etc/uci-defaults" need to know if > they > > are being executed by flashing over a "router original firmware" > > (factory.bin) or a previews OpenWrt firmware (sysupgrade.bin). > > What about using something like /etc/config/ronaldo with some option > like "firstboot"? Of course you should add this file to the list of > preserved config files. > -- Ronaldo Afonso 11 9 5252 0484 www.ronaldoafonso.com.br
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel