head 1.3; access; symbols; locks; strict; comment @# @; 1.3 date 99.01.07.13.26.17; author alexis; state Exp; branches; next 1.2; 1.2 date 98.10.17.13.25.48; author alexis; state Exp; branches; next 1.1; 1.1 date 98.10.17.13.22.19; author alexis; state Exp; branches; next ; desc @MISCELLANEOUS POST-CONNECT SCRIPT - DOES NOTHING! @ 1.3 log @symbol name changes @ text @#!/bin/sh ################################################################################ # # THIS SCRIPT DOES NOTHING UNLESS YOU UNCOMMENT THINGS! # # ppplcd-misc-null version MARKER_PATCHLEVEL # $Header: /diskb/home/alexis/dev/supported/ppplc/doc/examples/RCS/ppplc-misc-null,v 1.2 1998/10/17 13:25:48 alexis Exp alexis $ # ################################################################################ # A function to set the time on your system from a remote time server set_time() { TIME_SERVER=$1 /usr/bin/host -s 2 $TIME_SERVER || exit 1 /bin/ping -c 1 $TIME_SERVER || exit 1 /sbin/hwclock --set --utc --date="`/usr/sbin/rdate $TIME_SERVER`" } # For Demon ISP #set_time time.demon.co.uk @ 1.2 log @added patchlevel marker and rcs id @ text @d7 2 a8 2 # ppplcd-misc-null version PATCHLEVEL_MARKER # $Header$ @ 1.1 log @Initial revision @ text @d3 1 d5 4 a8 1 # A function to set the time on your system from a remote time server d10 1 d12 1 @