Matthew Burgess wrote:
> Do we need a script for it though?  I've not tested it yet (of course!
> :) ), but this is what I was thinking:
> 
> KERNEL="rtc", ACTION="add", \
>   RUN="echo 1024 > /proc/sys/dev/rtc/max-user-freq"
> KERNEL="eth0", ACTION="add", \
>   RUN="echo 0 > /proc/sys/net/ipv4/tcp_window_scaling;"
> 
> Obviously, there may be situations where a full-blown script is
> required, but I'd imagine for the majority of rules a simple one-liner
> like the above should do the job just fine.

If udev allows redirection like that, then yes, it'll work.  Otherwise
we'd have to start up a shell and do the redirection that way (which is
basically the same as a script anyway).

(Of course, if the file doesn't exist yet, we're still hosed... but
that's no different than before.)

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to