You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
566 B

#!/bin/sh /etc/rc.common
START=11
USE_PROCD=1
start_service() {
local enabled
config_load 'irqbalance'
config_get_bool enabled irqbalance enabled 0
[ "$enabled" -gt 0 ] || return 0
# 10 is the default
config_get interval irqbalance interval 10
# A list of IRQ's to ignore
banirq=""
handle_banirq_value()
{
banirq="$banirq -i $1"
}
config_list_foreach irqbalance banirq handle_banirq_value
procd_open_instance "irqbalance"
procd_set_param command /usr/sbin/irqbalance -f -t "$interval" "$banirq"
procd_set_param respawn
procd_close_instance
}