Browse Source

irqbalance: add init script

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
lilik-openwrt-22.03
Aleksandr Mezin 6 years ago
committed by Hannu Nyman
parent
commit
df14fa949f
2 changed files with 15 additions and 1 deletions
  1. +3
    -1
      utils/irqbalance/Makefile
  2. +12
    -0
      utils/irqbalance/files/irqbalance.init

+ 3
- 1
utils/irqbalance/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=irqbalance
PKG_VERSION:=1.2.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_PROTO:=git
@ -47,6 +47,8 @@ CONFIGURE_ARGS+= \
define Package/irqbalance/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/irqbalance $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/irqbalance.init $(1)/etc/init.d/irqbalance
endef
$(eval $(call BuildPackage,irqbalance))

+ 12
- 0
utils/irqbalance/files/irqbalance.init View File

@ -0,0 +1,12 @@
#!/bin/sh /etc/rc.common
START=11
USE_PROCD=1
start_service() {
procd_open_instance "irqbalance"
procd_set_param command /usr/sbin/irqbalance -f
procd_set_param respawn
procd_close_instance
}

Loading…
Cancel
Save