From: greg@kroah.com Date: Fri, 13 Feb 2004 07:08:22 +0000 (-0800) Subject: [PATCH] remove the database at startup. X-Git-Tag: 017~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=66a90217605c149fe06f3edf0f3c491f28e640b6 [PATCH] remove the database at startup. --- 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