[OpenWrt-Devel] How to check if its the first boot ever?
Ronaldo Afonso
ronaldo at ronaldoafonso.com.br
Thu Jul 14 09:15:40 EDT 2016
Hi,
Thanks very much for all your replies.
I'll try to do some like that. Maybe an "uci get system. at system
[0].fistboot".
[]s
Ronaldo
2016-07-14 3:41 GMT-03:00 Rafał Miłecki <zajec5 at gmail.com>:
> On 13 July 2016 at 22:27, Ronaldo Afonso <ronaldo at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160714/f2c15e5c/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list