[OpenWrt-Devel] How to check if its the first boot ever?

Rafał Miłecki zajec5 at gmail.com
Thu Jul 14 02:41:39 EDT 2016


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.
_______________________________________________
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