Homemade laptop lojack: ping website early in boot process
Peter Garrett
peter.garrett at optusnet.com.au
Mon Jul 7 01:59:32 UTC 2008
On Sun, 6 Jul 2008 18:00:10 -0500
"Chris Mohler" <cr33dog at gmail.com> wrote:
> Thoughts? I'll need to come up with something better that supersedes
> NM, but I thought it would be a good place to start, and I can't seem
> to figure out what's going wrong...
For what it's worth, if you use dhcp you can do something like this ( I
use this to run my iptables script on connect )
Place a file /etc/dhcp3/dhclient-exit-hooks ( this runs as soon as
dhclient exits after obtaining the IP). In my case it reads:
#!/bin/bash
sleep 1 &&
/etc/iptables.up
... where /etc/iptables.up is my script.
I imagine a simple nc or ping command or whatever is needed would run
from such a file too. This is used in conjunction with Network Manager,
but I see no reason why it should not work if you have plain dhcp
running on boot.
--
Peter Garrett <peter.garrett at optusnet.com.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080707/cf9f0611/attachment.sig>
More information about the ubuntu-users
mailing list