aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-07-15 11:29:47 -0500
committerWilliam Hubbs <williamh@gentoo.org>2011-07-15 11:29:47 -0500
commitef1a1b64f1045ab8b8b45f2285a39692bfdc08d1 (patch)
treea84b5b41854f308ba51e2e3af4d7435205090b88
parentlet "make test" and "make check" run the tests (diff)
downloadudev-gentoo-scripts-ef1a1b64f1045ab8b8b45f2285a39692bfdc08d1.tar.gz
udev-gentoo-scripts-ef1a1b64f1045ab8b8b45f2285a39692bfdc08d1.tar.bz2
udev-gentoo-scripts-ef1a1b64f1045ab8b8b45f2285a39692bfdc08d1.zip
Small style changes for consistency
-rw-r--r--init.d/udev10
-rw-r--r--init.d/udev-postmount12
2 files changed, 14 insertions, 8 deletions
diff --git a/init.d/udev b/init.d/udev
index a5783d3..c881c6f 100644
--- a/init.d/udev
+++ b/init.d/udev
@@ -58,7 +58,8 @@ rules_disable_switch()
}
# only called on openrc
-is_service_enabled() {
+is_service_enabled()
+{
local svc="$1"
[ ! -e "/etc/init.d/${svc}" ] && return 1
@@ -161,7 +162,8 @@ stop_udevmonitor()
fi
}
-display_hotplugged_services() {
+display_hotplugged_services()
+{
local svcfile= svc= services=
for svcfile in "${RC_SVCDIR}"/hotplugged/*; do
svc="${svcfile##*/}"
@@ -262,9 +264,9 @@ _start()
return 0
}
-stop() {
+stop()
+{
ebegin "Stopping udevd"
start-stop-daemon --stop --exec /sbin/udevd
eend $?
}
-
diff --git a/init.d/udev-postmount b/init.d/udev-postmount
index 12a30f6..6f8c584 100644
--- a/init.d/udev-postmount
+++ b/init.d/udev-postmount
@@ -3,7 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/164/udev-postmount.initd,v 1.1 2010/10/30 13:53:54 zzam Exp $
-depend() {
+depend()
+{
need localmount
after dbus # for trigger failed
}
@@ -15,7 +16,8 @@ dir_writeable()
# store persistent-rules that got created while booting
# when / was still read-only
-store_persistent_rules() {
+store_persistent_rules()
+{
# only continue if rules-directory is writable
dir_writeable /etc/udev/rules.d || return 0
@@ -32,7 +34,8 @@ store_persistent_rules() {
}
-start() {
+start()
+{
# check if this system uses udev
[ -d /dev/.udev/ ] || return 0
@@ -46,7 +49,8 @@ start() {
store_persistent_rules
}
-stop() {
+stop()
+{
:
}