From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: automating a script with dhcp address changes
Date: Tue, 26 Sep 2006 10:48:22 -0700 [thread overview]
Message-ID: <451967E6.2020906@comarre.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0609261149300.1376-100000@treebeard.engin.umich.edu>
Karthik Vishwanath wrote:
> Hello,
>
> I wanted to run a few tasks each time the IP address on my PC changed. The
> PC connects to the network using DHCP and runs ubuntu (LTS, 2.6.15-26).
>
> I noticed that there was a directory called /etc/network/if-up.d that had
> a couple of scripts in them. I was wondering if I could just leave my
> script in that directory and expect it to get executed everytime DHCP
> changes the machines IP?
I believe the answer is no. There is a way to handle it (a script that
the daemon will run), but the details are specific to the DHCP client
you are using. The most common ones are pump, dhcpcd, and dhclient, and
I don't know which of them Ubuntu uses (Debian-Sid offers all 3, plus a
few others, and even there, I don't know which is most commonly used).
See which daemon your system runs and check its man page for the
specifics of its config rules.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
prev parent reply other threads:[~2006-09-26 17:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 16:03 automating a script with dhcp address changes Karthik Vishwanath
2006-09-26 17:48 ` Ray Olszewski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=451967E6.2020906@comarre.com \
--to=ray@comarre.com \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.