mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] udev: fix error on kernels without uevent helpers
Date: Wed, 1 Jul 2015 10:08:35 +0200	[thread overview]
Message-ID: <20150701080835.GF30833@pengutronix.de> (raw)
In-Reply-To: <20150701080742.GE30833@pengutronix.de>

On Wed, Jul 01, 2015 at 10:07:42AM +0200, Michael Olbrich wrote:
> On Tue, Jun 23, 2015 at 04:18:00PM +0200, Clemens Gruber wrote:
> > Current kernel docs recommend disabling CONFIG_UEVENT_HELPER.
> > 
> > If disabled however, the following error message is shown:
> > /etc/rc.d/S00udev: line 95: can't create /proc/sys/kernel/hotplug:
> > nonexistent directory
> > 
> > This patch fixes it by checking if /proc/sys/kernel/hotplug exists.
> > 
> > Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
> 
> Thanks, applied.

Not this on, the v2.

Michael

> > ---
> >  projectroot/etc/init.d/udev | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> > 
> > diff --git a/projectroot/etc/init.d/udev b/projectroot/etc/init.d/udev
> > index 1020b40..a7722b7 100644
> > --- a/projectroot/etc/init.d/udev
> > +++ b/projectroot/etc/init.d/udev
> > @@ -50,7 +50,9 @@ start)
> >  
> >  	# udev handles uevents itself, so we don't need to have
> >  	# the kernel call out to any binary in response to them
> > -	echo > /proc/sys/kernel/hotplug
> > +	if [ -e /proc/sys/kernel/hotplug ]; then
> > +		echo > /proc/sys/kernel/hotplug
> > +	fi
> >  
> >  	echo "creating static nodes"
> >  	make_extra_nodes
> > -- 
> > 2.4.4
> > 
> > 
> > -- 
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2015-07-01  6:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23 14:18 Clemens Gruber
2015-07-01  8:07 ` Michael Olbrich
2015-07-01  8:08   ` Michael Olbrich [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=20150701080835.GF30833@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox