mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 16:34:45 +07:00
Remove reboot symlinks properly on uninstall
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user