X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7c82d19c08382c1f86963f38f6481b12fa799a35..abb5d01e009347b3a3eb73039ec64da890081856:/openwrt/package/srelay/Makefile diff --git a/openwrt/package/srelay/Makefile b/openwrt/package/srelay/Makefile index 6fde11387..9dc0b9545 100644 --- a/openwrt/package/srelay/Makefile +++ b/openwrt/package/srelay/Makefile @@ -13,6 +13,7 @@ PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_INIT_LEVEL:=60 include $(TOPDIR)/package/rules.mk @@ -52,14 +53,15 @@ $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) \ CC=$(TARGET_CC) \ all - cp $(PKG_BUILD_DIR)/srelay $(PKG_INSTALL_DIR) + $(CP) $(PKG_BUILD_DIR)/srelay $(PKG_INSTALL_DIR) touch $@ $(IPKG_SRELAY): install -m0755 -d $(IDIR_SRELAY)/usr/bin install -m0755 -d $(IDIR_SRELAY)/etc/init.d - cp $(PKG_INSTALL_DIR)/srelay $(IDIR_SRELAY)/usr/bin/ - cp files/S60srelay $(IDIR_SRELAY)/etc/init.d - chmod 755 $(IDIR_SRELAY)/etc/init.d/S60srelay + $(CP) $(PKG_INSTALL_DIR)/srelay $(IDIR_SRELAY)/usr/bin/ + $(CP) files/srelay.init $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay + $(CP) files/srelay.conf $(IDIR_SRELAY)/etc + chmod 755 $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay $(RSTRIP) $(IDIR_SRELAY) $(IPKG_BUILD) $(IDIR_SRELAY) $(PACKAGE_DIR)