openwrt / openwrt/netifd

hotplug DEVICE won't be reported on ifdown

Open
#64 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
37
Forks
62
PR merge metrics
No merged PRs in 30d

Description

OpenWrt 25.12.0-rc1.

~ # ifdown wan2
~ # Wed Jan  7 07:14:13 2026 user.notice hotplug: ifdown wan2

~ # ifup wan2
~ # Wed Jan  7 07:14:42 2026 user.notice hotplug: ifup wan2 lan1

/etc/hotplug.d/iface/99-test

#!/bin/sh

logger -t hotplug "$ACTION $INTERFACE $DEVICE"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided /etc/hotplug.d/iface/99-test script and reproduce the ifdown/ifup commands shown in the report. Trace netifd's interface hotplug handling to determine why DEVICE is absent during ifdown; done means the relevant DEVICE is reported on ifdown as well as ifup.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.