You are not logged in.

#1 2012-11-04 02:15:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,086

net-auto-wire* and systemd shutdown (missing RUNLEVEL detection)

I used to have a POST_DOWN in the ethernet netcfg profile to set up wlan0 and start net-auto-wireless (and an apposing one as PRE_UP) so that only one or the other profile is up, automatically depending on the eth0 carrier (whether the cable is plugged)

Obviously this is not a very good idea on system shutdown, why POST_DOWN actually called a script that determines the runlevel and only operates on runlevel 3 & 5

While the systemd transition had actully run more smooth than i had expected (or the /usr move ... ;-) i googled up a statement from LP that there's no intention to really support the $RUNLEVEL variable, so what i do for now is to locally patch the /etc/ifplugd/netcfg.action and handle the wlan0 setup and net-auto-wireless there.

This is actually rather what i want (automatic action, not unconditionally tied to the profile), but the  situation is less than ideal since now i'll soon get /etc/ifplugd/netcfg.action.pacnew

Long story short:
is there a legal way to hook onto auto-up/down or is there a completely different way that i missed or a way to get auserscript hook into /etc/ifplugd/netcfg.action upstream?

Thanks for reading until here =)

Offline

Board footer

Powered by FluxBB