chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00866ed
)
[PATCH] remove the database at startup.
author
greg@kroah.com
<greg@kroah.com>
Fri, 13 Feb 2004 07:08:22 +0000
(23:08 -0800)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:32:27 +0000
(21:32 -0700)
etc/init.d/udev
patch
|
blob
|
history
diff --git
a/etc/init.d/udev
b/etc/init.d/udev
index 364a9aa5f714c5d8f802819466f795cc6767f145..437556c3fb964a8448cb2380124e36ade1c76018 100644
(file)
--- a/
etc/init.d/udev
+++ b/
etc/init.d/udev
@@
-49,6
+49,12
@@
case "$1" in
if [ ! -d $udev_root ]; then
mkdir $udev_root
fi
+
+ # remove the database if it is there as we always want to start fresh
+ if [ -f $udev_root/.udevdb ]; then
+ rm -f $udev_root/.udevdb
+ fi
+
# propogate /udev from /sys - we only need this while we do not
# have initramfs and an early user-space with which to do early
# device bring up