[Solved] Dhcp hotplug script is not working

Thanks to @patient0 . The job is done.
Thanks a lot @patient0 . He helped me in DM for over 3 hours!
I will post the full method later to everyone and will edit this post.


Just a quick reply for the interested who where involved.
Setting the HOME and USER variables solved it:

# ... rest of the script

We found a thread about someone trying to accomplish something similar in an init script. And since hotplug uses procd it was worth a shot.
I did assume that some default environment is set for a system with mostly only one user; but one should not assume since it runs headless.

1 Like