Subject: Using DHCP hook

From: Alireza Eskandari <[email-masked]>
Date: Sun, 8 Dec 2019 21:29:38 +0000

Hi guys,
How can I use dhcp hook in alpine?
I have created a script in /etc/udhcpc/post-bound
but it doesn't work!

---

From: Matt Schwartz <[email-masked]>
Date: Sun, 8 Dec 2019 16:50:29 -0500

Do you want to run a DHCP server? If so, you'll need to add that package.

---

From: Alireza Eskandari <[email-masked]>
Date: Sun, 8 Dec 2019 22:31:53 +0000

Hi Matt,
I don't want to run a DHCP server, I'm using DHCP client.
I need to run a script after the machine gets its IP from DHCP server, but
I need DHCP server IP address as an input for it.
Regards

---

From: Konstantin Kulikov <[email-masked]>
Date: Tue, 10 Dec 2019 04:33:15 +0300

On 12/9/19 1:31 AM, Alireza Eskandari wrote:
> I need to run a script after the machine gets its IP from DHCP server, 
> but I need DHCP server IP address as an input for it.
> Regards
> 
> On Sun, Dec 8, 2019 at 9:50 PM Matt Schwartz <[email-masked] 
> <mailto:[email-masked]>> wrote:
> 
>     On Sun, Dec 8, 2019, 4:30 PM Alireza Eskandari
>     <[email-masked] <mailto:[email-masked]>> wrote:
> 
>         Hi guys,

Did you give it executable permissions (chmod +x 
/etc/udhcpc/post-bound/your-script)?