mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
Remove reboot symlinks properly on uninstall
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
63199d368f
commit
c33ba6a477
1 file changed
+3
-2
+3
-2
@@ -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
|
||||||
Reference in new issue
Block a user