В Mon, 30 May 2011 18:38:00 -0700
Philip Prindeville <philipp_s...@redfish-solutions.com> пишет:

> How often are you booting that this is even a concern?

Once or twice per day is enough?
I have a small router with a battery and USB port which you can plug
any USB 3g/4g modem in. It's quite handy to bring it with you and turn
on/off only when you need it.

> 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
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel


-- 
  Alexander

Attachment: signature.asc
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to