Remove reboot symlinks properly on uninstall

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-12-30 21:20:06 +01:00
parent 63199d368f
commit c33ba6a477
+3 -2
View File
@@ -93,9 +93,10 @@ uninstall-hook:
echo "Non-finit reboot, skipping uninstall."; \
else \
for file in $(REBOOT_LNKS); do \
if [ "`readlink $$file`" != "reboot" ]; \
link=$(DESTDIR)$(sbindir)/$$file; \
if [ "`readlink $$link`" != "reboot" ]; \
then continue; \
fi; \
$(RM) $(DESTDIR)$(sbindir)/$$file; \
$(RM) $$link; \
done; \
fi