Remove reboot symlinks properly on uninstall

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