[Bug 12021] New: Scripts in if-down.d and if-post-down.d are not run when taking down network
bugzilla at busybox.net
bugzilla at busybox.net
Tue Jul 9 16:45:56 UTC 2019
https://bugs.busybox.net/show_bug.cgi?id=12021
Bug ID: 12021
Summary: Scripts in if-down.d and if-post-down.d are not run
when taking down network
Product: Busybox
Version: 1.30.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Networking
Assignee: unassigned at busybox.net
Reporter: daniele.testa at gmail.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
if the directories /etc/network/{if-down.d,if-post-down.d} does not exist, the
command "ifdown" will complain that they are missing.
But, even if they exist and have scripts in them (with chmod +x), they are NOT
executed when running "ifdown".
Files in "if-pre-up.d" are executed correctly on "ifup". Seems it's only an
issue with the down-scripts.
To replicate the error, put a simple test-script like "touch /tmp/down" in the
"if-down.d" directory and run "ifdown -a"
Strangely enough, using the "down" parameter in /etc/network/interfaces DOES
work.
Something like this works:
auto mlan0
iface mlan0 inet manual
down touch /tmp/down
So, I can work around this bug by putting "down run-parts
/etc/network/if-down.d", but it's a very ugly solution in my opinion. Is this a
known issue/bug or am I doing something wrong?
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list