[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!
Thanks
I will post the full method later to everyone and will edit this post.

EDIT:

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

HOME=/root
USER=root
# ... 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

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.