On 09/05/2019 10.11, Per Jessen wrote:
Per Jessen wrote:
It seems I was not exactly 100% right when I wrote "the mechanisms haven't changed" ... they are much the same, but the config has changed :-(
See "man 5 ifcfg" - skip to POST_UP_SCRIPT.
I added this line to /etc/sysconfig/network/config
POST_UP_SCRIPT="compat:suse:/etc/sysconfig/network/if-up.d/carlos.sh"
afaict, the "if-{up,down}.d/" location is not longer used.
In the script I just dump the arguments and the environment and email it to myself. I received two emails, one for 'lo' and one for 'eth0'.
eth0 eth0 -o post-up WICKED_OBJECT_PATH=/org/opensuse/Network/Interface/2 CONFIG=eth0 WICKED_RETFILE=/tmp/wicked.Bf9Vyx WICKED_INTERFACE_NAME=eth0 PWD=/ WICKED_INTERFACE_INDEX=2 INTERFACE=eth0 WICKED_ARGFILE=/tmp/wicked.o9HzdI SHLVL=2 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin _=/usr/bin/env
I'll check on that later, but thanks :-) The current local IP is not there, that's a parameter I will need. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))