ntp.ubuntu.com

John DeCarlo johndecarlo at gmail.com
Wed Nov 2 17:54:02 UTC 2005


On 11/2/05, Vram <lamsokvr at xprt.net> wrote:
>
> #! /bin/sh
>
> add a line
>
> exit 0
> # exit zero not o
>

Hello,

Can any script expert out there give me pointers on having
/etc/init.d/ntpdate check my IP address?

I would like something like:

if test (IPAddress starts with 192.168); then
NTPSERVERS="the one I use at home"
else if test (IPAddress starts with X.Y.Z); then
NTPSERVERS="the one I use at work"

Thanks.


--
John DeCarlo, My Views Are My Own
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20051102/83cefdfb/attachment.html>


More information about the ubuntu-users mailing list