Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/udev-gentoo-scripts:master commit in: init.d/
Date: Mon, 05 Sep 2011 19:58:17
Message-Id: 91add723bd8e8d02ec04b712c01c01d980c9a9da.WilliamH@gentoo
1 commit: 91add723bd8e8d02ec04b712c01c01d980c9a9da
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 5 19:53:39 2011 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 5 19:53:39 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/udev-gentoo-scripts.git;a=commit;h=91add723
7
8 Improve rundir handling
9
10 Because of the way "udevadm info --run" works, we need to create
11 /run/udev if /run exists.
12
13 ---
14 init.d/udev | 11 +++++++++--
15 1 files changed, 9 insertions(+), 2 deletions(-)
16
17 diff --git a/init.d/udev b/init.d/udev
18 index 5ec0f23..1aa52cf 100644
19 --- a/init.d/udev
20 +++ b/init.d/udev
21 @@ -30,8 +30,14 @@ depend()
22
23 get_rundir()
24 {
25 - RUNDIR=$(udevadm info --run)
26 - echo "${RUNDIR}"
27 + echo $(udevadm info --run)
28 +}
29 +
30 +make_rundir()
31 +{
32 + if [ -d /run ]; then
33 + checkpath -d -m 0755 -o root:root -q /run/udev
34 + fi
35 }
36
37 cleanup()
38 @@ -237,6 +243,7 @@ start()
39 return 1
40 fi
41
42 + make_rundir
43 check_openrc_net
44
45 if [ ! -e /etc/runlevels/${RC_DEFAULTLEVEL:-default}/udev-postmount ]; then