On 03/24/2017 08:54 AM, Per Jessen wrote:
Per Jessen wrote:
I haven't used one of these (/etc/sysconfig/network/if-up.d/*) in years, but I thought the idea is they're are all run when an interface comes up? I'm not sure, but it doesn't seem to work like that in TW. Well, my carefully crafted script is certainly being ignored :-)
Looking at /etc/sysconfig/network/config in 13.2, we had
GLOBAL_POST_UP_EXEC="yes" GLOBAL_PRE_DOWN_EXEC="yes"
but they seem to have disappeared in TW. I looked at the 'ifup' man page in Leap422, there's no mention of any scripts or if-up.d/.
Here are the two things I have tried sofar -
a) I placed a script in /etc/sysconfig/network/if-up.d/myscript - didn't work.
b) I placed a script in /etc/sysconfig/network/scripts/ and added POST_UP_SCRIPT=myscript to ifcfg-wlan0 - didn't work.
This is on TW, I guess the mechanism could be borken, but isn't this the way it was/is supposed to work? I see e.g. /etc/sysconfig/network/if-up.d/SuSEfirewall2 (symlink to scripts/SuSEfirewall2).
I've had also problems on Leap 42.1 and opened this and maybe some other bug reports https://bugzilla.opensuse.org/show_bug.cgi?id=984088 POST_UP_SCRIPT is explained well in man ifcfg I'm using something like this: POST_UP_SCRIPT="compat:suse:/etc/sysconfig/network/postup-eth0" AFAIR these scripts have to be executable or otherwise they will just not be executed silently. cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org