On 2014-03-31 15:42, Lukas Macura wrote: > Hi, > > we are working on patch which will save DHCP client parameters, because > we needed to get informations later in scripts. > Maybe this is what you need. Our implementation utilises udhcp script > and save needed parameters to /var/state for given interface. > > Now we are testing this. I think more people can use this. > > We will inform you when patch will be available. Please don't use /var/state for more network related stuff like this. You can use something like the following: ubus call network.interface.<name> set_data '{ "name": "value" }'
That way you can store name/value pairs in the per-interface data in netifd, which you can retrieve via interface status. When the interface goes down, the data is cleared again, so cleanup is easy. - Felix _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel