From 9d7819a94f5244f65a4f9afc9f3024631eb41706 Mon Sep 17 00:00:00 2001 From: Oliver Kraitschy Date: Wed, 25 Sep 2024 01:17:36 +0200 Subject: [PATCH] [fix] Remove symlink to initscript with previous name Remove the symlink with the previous name because otherwise the service would exist twice with different names. Redmine-patch-id: 8801 Signed-off-by: Oliver Kraitschy --- openwisp-config/Makefile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/openwisp-config/Makefile b/openwisp-config/Makefile index 84e0ef8..3f3bac1 100644 --- a/openwisp-config/Makefile +++ b/openwisp-config/Makefile @@ -100,16 +100,11 @@ define Package/openwisp-config/postinst if [ ! -L $${IPKG_INSTROOT}/usr/sbin/openwisp_config ]; then ln -s /usr/sbin/openwisp-config $${IPKG_INSTROOT}/usr/sbin/openwisp_config fi - -if [ ! -L $${IPKG_INSTROOT}/etc/init.d/openwisp_config ]; then - ln -s /etc/init.d/openwisp-config $${IPKG_INSTROOT}/etc/init.d/openwisp_config -fi endef define Package/openwisp-config/postrm #!/bin/sh rm -f $${IPKG_INSTROOT}/usr/sbin/openwisp_config -rm -f $${IPKG_INSTROOT}/etc/init.d/openwisp_config endef $(eval $(call BuildPackage,openwisp-config))