I have two scripts under /etc/hotplug.d/iface to play sounds thru the PC speaker when the WAN (pppoe-wan) interface goes up and down but they're not working.
What am I missing and do filename's matter?
@vgaetera Thanks, the script definitely isn't being called or run, I added /usr/bin/env > /tmp/envs_log.log to the 99-ifdownwan script and no log is created.
The section under Troubleshooting has one tip about adding env > /tmp/envs_log.log to your script to view the variables as procd sees them. The rest of that page is descriptions of variables and script examples, unless I'm missing something?
As suggested I did add that line, but since the script isn't being called, env is never run and no log created. Which is what my Q alluded to.
I'm aware of that. I was merely pointing out, that if OP used an existing script as a template, he might have fallen into that trap, because half of the distributed hotplug scripts on master have this superflouous line
Fair enough, but this is not a show stopper, as the sqm-scripts hotlug script works like a charm.
My hunch is that for the OP "$INTERFACE" = "pppoe-wan" never evaluates true...
The issue was $INTERFACE = pppoe-wan instead of wan. kern.info kernel: [222085.546811] pppoe-wan: renamed from ppp0 in the log threw me off. ifup and ifdown also use pppoe-wan as the interface.