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: Tue, 03 Jan 2012 17:43:53
Message-Id: 8d3e96f760deab72c79707d16d6ca085c38e1dc8.WilliamH@gentoo
1 commit: 8d3e96f760deab72c79707d16d6ca085c38e1dc8
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 17:36:09 2012 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 17:36:09 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/udev-gentoo-scripts.git;a=commit;h=8d3e96f7
7
8 udev: add reload command to reload kernel module configuration
9
10 Reported-by: Mike Frysinger <vapier <AT> gentoo.org>
11 X-Gentoo-Bug: 397471
12 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=397471
13
14 ---
15 init.d/udev | 10 ++++++++++
16 1 files changed, 10 insertions(+), 0 deletions(-)
17
18 diff --git a/init.d/udev b/init.d/udev
19 index d172f96..6f3174b 100644
20 --- a/init.d/udev
21 +++ b/init.d/udev
22 @@ -6,6 +6,9 @@ command=/sbin/udevd
23 command_args="--daemon ${udev_opts}"
24 description="udev manages device permissions and symbolic links in /dev"
25
26 +extra_started_commands="reload"
27 +description_reload="reload udev kernel module configuration"
28 +
29 persistent_cd_disable="${persistent_cd_disable:-no}"
30 persistent_net_disable="${persistent_net_disable:-no}"
31 rc_coldplug=${rc_coldplug:-${RC_COLDPLUG:-YES}}
32 @@ -273,3 +276,10 @@ start_post()
33 display_hotplugged_services
34 return 0
35 }
36 +
37 +reload()
38 +{
39 + ebegin "reloading udev kernel module configuration"
40 + udevadm --reload
41 + eend $?
42 +}