[OpenWrt-Devel] How to check if its the first boot ever?
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
More information about the openwrt-devel