Hello everyone,
I am using OpenWRT 19.07 packages in my custom image with UCI for interfacing purpose. My problem is related to the network interrface deomon "netifd". Normally this deomon should launch scripts under /etc/hotplug.d/iface when ifdown/ifup event occurs but this doesn't happen ! (Sometimes it happens just the first time).
I read a related topic in this forum but issue never been resolved, issue is in this link .
Is there any stable version that contains this issue fixed ?
Is there otherwise any workaround or fix in the 19.07 version ?
Best Regards
Bayroom
I think there is a problem that idf one of the hotplug scripts (e.g. in /etc/hotplug.d.iface) does not run and finish successfully hotplugging of all other iface scripts is blocked. Maybe post the output of:
ls -all /etc/hotplug.d/iface/*
Here is mine from a turris omnia running turrosOS 5 (an OpenWrt19 derivative):
root@turris:~# ls -all /etc/hotplug.d/iface/*
-rw-r--r-- 1 root root 155 Nov 1 2021 /etc/hotplug.d/iface/00-netstate
-rw-r--r-- 1 root root 97 Jun 6 22:48 /etc/hotplug.d/iface/01-logger
-rwxr-xr-x 1 root root 331 Jun 6 14:08 /etc/hotplug.d/iface/11-sqm
-rwxr-xr-x 1 root root 486 Nov 1 2021 /etc/hotplug.d/iface/15-teql
-rw------- 1 root root 336 Nov 1 2021 /etc/hotplug.d/iface/20-firewall
-rw-r--r-- 1 root root 1704 Jun 6 14:07 /etc/hotplug.d/iface/20-ntpclient
-rwxr-xr-x 1 root root 205 Nov 1 2021 /etc/hotplug.d/iface/30-nlbwmon
-rwxr-xr-x 1 root root 1116 Nov 1 2021 /etc/hotplug.d/iface/40-resolver-reload
-rwxr-xr-x 1 root root 665 Nov 1 2021 /etc/hotplug.d/iface/42-openvpn
-rw-r--r-- 1 root root 1345 Nov 1 2021 /etc/hotplug.d/iface/50-miniupnpd
-rwxr-xr-x 1 root root 204 Nov 1 2021 /etc/hotplug.d/iface/95-ddns
-rwxr-xr-x 1 root root 145 May 4 07:39 /etc/hotplug.d/iface/99-foris-controller
20-ntpclient blocked so I added"
#!/bin/sh
# Copyright (C) 2006-2014 OpenWrt.org
. /lib/functions.sh
#20220606: hotfix
logger -t ntpclient "WARN: exiting without doing anything."
exit 0
to that script to effectively disable it for the time being.