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: Wed, 01 Aug 2012 16:23:03
Message-Id: 1343838065.89c2380217053bfbc7769f95124102d07db94976.WilliamH@gentoo
1 commit: 89c2380217053bfbc7769f95124102d07db94976
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 1 16:21:05 2012 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 1 16:21:05 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/udev-gentoo-scripts.git;a=commit;h=89c23802
7
8 Add reload command for bug #403217
9
10 ---
11 init.d/udev | 9 +++++++++
12 1 files changed, 9 insertions(+), 0 deletions(-)
13
14 diff --git a/init.d/udev b/init.d/udev
15 index 33b0335..5247b84 100644
16 --- a/init.d/udev
17 +++ b/init.d/udev
18 @@ -5,6 +5,8 @@
19 command=/usr/lib/systemd/systemd-udevd
20 command_args="--daemon ${udev_opts}"
21 description="udev manages device permissions and symbolic links in /dev"
22 +extra_started_commands="reload"
23 +description_reload="Reload the udev rules and databases"
24
25 rc_coldplug=${rc_coldplug:-${RC_COLDPLUG:-YES}}
26 udev_debug="${udev_debug:-no}"
27 @@ -177,3 +179,10 @@ start_post()
28 display_hotplugged_services
29 return 0
30 }
31 +
32 +reload()
33 +{
34 + ebegin "reloading udev rules and databases"
35 + udevadm control --reload
36 + eend $?
37 +}