How often are you booting that this is even a concern?
On 5/30/11 4:00 PM, Peter Wagner wrote:
> Hi,
>
> while i was reading some init files i stumbled upon this:
>
> /sbin/wifi detect >> /etc/config/wireless
>
> grep -qs config /etc/config/wireless && {
> /sbin/wifi up
> } || {
> rm -f /etc/config/wireless
> }
>
> this means:
>
>> /sbin/wifi detect >> /etc/config/wireless
>
> /sbin/wifi only outputs something if /etc/config/wireless doesnt exist
> but even if the files exist /etc/config/wireless modification time gets
> updated. this means even when the wifi is allready configured the modtime of
> the file gets updated everytime the system boots.
>
> i created this patch - maybe there is a better way to fix this.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel