[PATCH] remove the .udev.tdb when installing or uninstalling to be safe.
This commit is contained in:
parent
66a9021760
commit
552a4d426f
2
Makefile
2
Makefile
|
@ -361,6 +361,7 @@ install: install-config install-dbus-policy all
|
||||||
$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
|
$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
|
||||||
$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
|
$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
|
||||||
- rm -f $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
|
- rm -f $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
|
||||||
|
- rm -f $(udevdir)/.udev.tdb
|
||||||
- ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
|
- ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
|
||||||
@extras="$(EXTRAS)" ; for target in $$extras ; do \
|
@extras="$(EXTRAS)" ; for target in $$extras ; do \
|
||||||
echo $$target ; \
|
echo $$target ; \
|
||||||
|
@ -382,6 +383,7 @@ uninstall: uninstall-dbus-policy
|
||||||
- rm $(sbindir)/$(HELPER)
|
- rm $(sbindir)/$(HELPER)
|
||||||
- rmdir $(hotplugdir)
|
- rmdir $(hotplugdir)
|
||||||
- rmdir $(configdir)
|
- rmdir $(configdir)
|
||||||
|
- rm $(udevdir)/.udev.tdb
|
||||||
- rmdir $(udevdir)
|
- rmdir $(udevdir)
|
||||||
@extras="$(EXTRAS)" ; for target in $$extras ; do \
|
@extras="$(EXTRAS)" ; for target in $$extras ; do \
|
||||||
echo $$target ; \
|
echo $$target ; \
|
||||||
|
|
|
@ -51,8 +51,8 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# remove the database if it is there as we always want to start fresh
|
# remove the database if it is there as we always want to start fresh
|
||||||
if [ -f $udev_root/.udevdb ]; then
|
if [ -f $udev_root/.udev.tdb ]; then
|
||||||
rm -f $udev_root/.udevdb
|
rm -f $udev_root/.udev.tdb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# propogate /udev from /sys - we only need this while we do not
|
# propogate /udev from /sys - we only need this while we do not
|
||||||
|
|
Loading…
Reference in a new issue