<div dir="ltr"> Hi all,<div><br></div><div> I'm doing a customized OpenWrt firmware and I need to know at boot time if its the first time my OpenWrt firmware has been booted.</div><div><br></div><div> 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).</div><div><br></div><div> For example:</div><div><br></div><div> I need to set the network.lan.ipaddr to the IP address "192.168.120.1" if it is the first time I'm flashing my router, otherwise I need to preserve the IP address the was configured before.</div><div><br></div><div> Any help would be appreciated.</div><div><br></div><div> Thanks in advance ...<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Ronaldo Afonso<br><div>11 9 5252 0484</div><div><a href="http://www.ronaldoafonso.com.br" target="_blank">www.ronaldoafonso.com.br</a></div></div></div>
</div></div>