aboutsummaryrefslogtreecommitdiffstats
path: root/testing/udev/udev-postmount.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/udev/udev-postmount.initd')
-rw-r--r--[-rwxr-xr-x]testing/udev/udev-postmount.initd12
1 files changed, 9 insertions, 3 deletions
diff --git a/testing/udev/udev-postmount.initd b/testing/udev/udev-postmount.initd
index 96beb845bb..33a412ff87 100755..100644
--- a/testing/udev/udev-postmount.initd
+++ b/testing/udev/udev-postmount.initd
@@ -1,21 +1,27 @@
#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/136/udev-postmount.initd,v 1.3 2009/02/23 16:30:53 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/161/udev-postmount.initd,v 1.1 2010/08/24 18:41:29 zzam Exp $
depend() {
need localmount
+ after dbus # for trigger failed
}
dir_writeable()
{
- mkdir "$1"/.test.$$ 2>/dev/null && rmdir "$1"/.test.$$
+ printf "" 2>/dev/null >"$1"/.test.$$ && rm "$1"/.test.$$
}
start() {
# check if this system uses udev
[ -d /dev/.udev/ ] || return 0
+ einfo "Doing udev cleanups"
+
+ # Run the events that failed at first udev trigger
+ udevadm trigger --type=failed -v
+
# only continue if rules-directory is writable
dir_writeable /etc/udev/rules.d || return 0