Changes for new buildroot version
#
################################################################################
-define DISABLE_SAMBA_INSTALL_TARGET_CMDS
+define DISABLE_SAMBA_INSTALL_IMAGES_CMDS
echo "Removing SAMBA services"
- if [ -f $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/smb.service ]; then \
- rm $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/smb.service; \
- fi
- if [ -f $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/nmb.service ]; then \
- rm $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/nmb.service; \
- fi
- if [ -f $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/winbind.service ]; then \
- rm $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/winbind.service; \
- fi
+ for s in smb nmb winbind samba; do \
+ if [ -h $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/$$s.service ]; then \
+ echo "removing $$s.service in /etc/systemd/system/multi-user.target.wants"; \
+ rm $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/$$s.service; \
+ fi; \
+ if [ -f $(TARGET_DIR)/lib/systemd/system/$$s.service ]; then \
+ echo "removing $$s.service in /lib/systems/system"; \
+ rm $(TARGET_DIR)/lib/systemd/system/$$s.service; \
+ fi; \
+ done
endef
+DISABLE_SAMBA_INSTALL_TARGET_CMDS = $(DISABLE_SAMBA_INSTALL_IMAGES_CMDS)
+
$(eval $(generic-package))
