vanhofen
3 years ago
2 changed files with 54 additions and 0 deletions
@ -0,0 +1,27 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
. /etc/init.d/functions |
||||
|
. /etc/init.d/globals |
||||
|
|
||||
|
irqbalance=$(which irqbalance || type -p irqbalance) |
||||
|
if [ -z ${irqbalance} ]; then |
||||
|
SHOWINFO "irqbalance not found." |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
case $1 in |
||||
|
start) |
||||
|
${irqbalance} |
||||
|
;; |
||||
|
stop) |
||||
|
trap "" INT |
||||
|
kill -INT $(pidof irqbalance) |
||||
|
;; |
||||
|
restart) |
||||
|
$0 stop |
||||
|
$0 start |
||||
|
;; |
||||
|
*) |
||||
|
echo "[$BASENAME] Usage: $0 {start|restart|stop}" |
||||
|
;; |
||||
|
esac |
@ -0,0 +1,27 @@ |
|||||
|
################################################################################
|
||||
|
#
|
||||
|
# irqbalance
|
||||
|
#
|
||||
|
################################################################################
|
||||
|
|
||||
|
IRQBALANCE_VERSION = 1.9.0 |
||||
|
IRQBALANCE_DIR = irqbalance-$(IRQBALANCE_VERSION) |
||||
|
IRQBALANCE_SOURCE = irqbalance-$(IRQBALANCE_VERSION).tar.gz |
||||
|
IRQBALANCE_SITE = $(call github,irqbalance,irqbalance,v$(IRQBALANCE_VERSION)) |
||||
|
|
||||
|
IRQBALANCE_DEPENDENCIES = glib2 ncurses |
||||
|
|
||||
|
# Autoreconf needed because package is distributed without a configure script
|
||||
|
IRQBALANCE_AUTORECONF = YES |
||||
|
|
||||
|
IRQBALANCE_CONF_OPTS = \
|
||||
|
--with-irqbalance-ui |
||||
|
|
||||
|
define IRQBALANCE_INSTALL_INIT_SCRIPT |
||||
|
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/irqbalance.init $(TARGET_sysconfdir)/init.d/irqbalance |
||||
|
$(UPDATE-RC.D) irqbalance defaults 75 25 |
||||
|
endef |
||||
|
IRQBALANCE_TARGET_FINALIZE_HOOKS += IRQBALANCE_INSTALL_INIT_SCRIPT |
||||
|
|
||||
|
irqbalance: | $(TARGET_DIR) |
||||
|
$(call autotools-package) |
Loading…
Reference in new issue