From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: linux-hotplug@vger.kernel.org
Subject: Re: Alter a sysfs attribute??
Date: Mon, 15 Sep 2008 09:08:37 +0000 [thread overview]
Message-ID: <48CE2615.4090302@tuffmail.co.uk> (raw)
In-Reply-To: <571445d80809141048m5b06d3d9j734ec46c4a50fbfd@mail.gmail.com>
Jay Otis wrote:
> Hello all, I am using Ubuntu Hardy and I need to change the
> "max_sectors" attribute of my usb device on boot but RUN+="/bin/echo
> 1024 > /sys/block/%k/device/max_sectors" does not seem to change the
> value. I've tried su -... and su username -c... the command runs from
> a root terminal and from a startup script in init.d just not from udev
> :s
Redirection is a shell function. udev does not automatically run
commands through a shell.
Try
RUN+="/bin/sh -c echo 1024 > /sys/block/%k/device/max_sectors"
Regards
Alan
prev parent reply other threads:[~2008-09-15 9:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-14 17:48 Alter a sysfs attribute?? Jay Otis
2008-09-15 9:08 ` Alan Jenkins [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48CE2615.4090302@tuffmail.co.uk \
--to=alan-jenkins@tuffmail.co.uk \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.