Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id F07B9782B9A for <~alpine/users@lists.alpinelinux.org>; Tue, 10 Dec 2019 01:33:18 +0000 (UTC) Received: by mail-lj1-f177.google.com with SMTP id m6so17931771ljc.1 for <~alpine/users@lists.alpinelinux.org>; Mon, 09 Dec 2019 17:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=cCZhwyLFJxcfRIxF553Xs7niJnAoPK6AglL9iK9VUis=; b=uHD2WfRZJ/GTp+W8EXU4SzgzgQ/f+ItUPOFtap+hBmcFBvh1uN9pHjD+h28wambcM5 jtV2J8pSg7OI91P/TPJTrEe+gQm4uS79jbo/hvPIjQ6ju2LYPoVqpmPyPcbEFzL5+ie3 +NjKJRvSG0SJcHKjR/ayDIKTDdaddxenUabeCrMiH2nuUNdQryB+8Rovfi8IzPfy6SIF WxHjcz/BfwCo/R/Ix32S60yUjA5o7oJ9CTLLf4D0TCDwwMwY6++kDJghGfEDNk6qdHxw x4p2fEOspAhhz65xBd5SNkVyp2/JYsXeM7EDUiwRD4lora/88cKJ0mATfBGe3Ys/RnHd NvhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cCZhwyLFJxcfRIxF553Xs7niJnAoPK6AglL9iK9VUis=; b=K6yXaWiPE+0dLZXlusVqb4EYuR2ACCrQW+1EDcPBGWPk6yoKfsS4JoYPJ110OSi8F8 Uz+WCUuWWLgRjsIIItvt0UfG72nCGqCIMZGD4EUpnkpwhPsA6Obu7Cak1klGi99zZhAz 3BWH4sH9w1K5zJg0wo9wV54mrYDPWbhHvn98eBnehFvinESGotdTDyDnlvOTRcgophtX d+bMiRNOnt/jqvMwlRCH/niuxL1ycqti4Zl02jLTjKHDxy3Vg+A9K35GalygO1k704fF R8SuzNnMhZepR5DEHutHQbMFjXAgfExbZHr5fAuOC64Eos/8JJiTKl1UwbJVxa8aZmJV OkDA== X-Gm-Message-State: APjAAAU1NPqDx43rWW1rIqks1g7LvL9vycZ/aOTLDQQdzkr2BY+6/6Es 8lhGnMUcTI8bwG8C53xTZVw0FgDL X-Google-Smtp-Source: APXvYqwvtNmUXaGvRQxPCtZxi1LxqoMC6KndIHKxqHDIOBXm8zvjt8G0cBITBlzmYTmwzCOd8Cq24g== X-Received: by 2002:a2e:88c4:: with SMTP id a4mr17919679ljk.174.1575941597700; Mon, 09 Dec 2019 17:33:17 -0800 (PST) Received: from kpc.kaey.ru ([91.123.18.165]) by smtp.gmail.com with ESMTPSA id q25sm781290lji.7.2019.12.09.17.33.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Dec 2019 17:33:17 -0800 (PST) Subject: Re: Using DHCP hook To: Alireza Eskandari , Matt Schwartz Cc: ~alpine/users@lists.alpinelinux.org References: From: Konstantin Kulikov Message-ID: <6b2972f4-7dcb-8fc9-6dbe-12ced7f5c4ce@gmail.com> Date: Tue, 10 Dec 2019 04:33:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 12/9/19 1:31 AM, Alireza Eskandari wrote: > 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 > > On Sun, Dec 8, 2019 at 9:50 PM Matt Schwartz > wrote: > > Do you want to run a DHCP server? If so, you'll need to add that > package. > > On Sun, Dec 8, 2019, 4:30 PM Alireza Eskandari > > wrote: > > 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! > Did you give it executable permissions (chmod +x /etc/udhcpc/post-bound/your-script)?