summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-12 23:08:22 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:27 -0700
commit66a90217605c149fe06f3edf0f3c491f28e640b6 (patch)
treef35bb94bd74be5b05ac5552bf8259668319c7c69 /etc
parent[PATCH] udev - keep private data out of the database? (diff)
downloadeudev-66a90217605c149fe06f3edf0f3c491f28e640b6.tar.gz
eudev-66a90217605c149fe06f3edf0f3c491f28e640b6.tar.bz2
eudev-66a90217605c149fe06f3edf0f3c491f28e640b6.zip
[PATCH] remove the database at startup.
Diffstat (limited to 'etc')
-rw-r--r--etc/init.d/udev6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/init.d/udev b/etc/init.d/udev
index 364a9aa5f..437556c3f 100644
--- 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