From 4f0c847828b9602d12d13059a5e8bb159120dcb7 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Wed, 17 Jun 2020 23:29:13 +0300 Subject: irqbalance: fix socket directory and create it Irqbalance defines /run/irqbalance dir for its socket communication between irqbalance and its UI. /run does not exist in OpenWrt (although it is defined by the Linux FHS), so the socket creation fails. Although we do not compile UI and thus the issue is not critical to us, fix the directory location. Additionally, the creation is originally handled by a systemd init script that we do not use. * patch source to define dir as /var/run/irqbalance * create the dir in the procd init script. Signed-off-by: Hannu Nyman --- utils/irqbalance/files/irqbalance.init | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/irqbalance/files/irqbalance.init') diff --git a/utils/irqbalance/files/irqbalance.init b/utils/irqbalance/files/irqbalance.init index 638dcb39f..0f587e158 100644 --- a/utils/irqbalance/files/irqbalance.init +++ b/utils/irqbalance/files/irqbalance.init @@ -16,6 +16,8 @@ start_service() { config_get_bool enabled irqbalance enabled 0 [ "$enabled" -gt 0 ] || return 0 + mkdir -p /var/run/irqbalance + # 10 is the default config_get interval irqbalance interval 10 -- cgit v1.2.3