xref: /freebsd/contrib/ntp/scripts/deprecated/hpadjtime.sh (revision 416ba5c74546f32a993436a99516d35008e9f384)
1*2b15cb3dSCy Schubert#! /bin/sh
2*2b15cb3dSCy Schubertval=1
3*2b15cb3dSCy Schubertif [ -f /bin/uname -o -f /usr/bin/uname ]; then
4*2b15cb3dSCy Schubert	set `uname -a | tr '[A-Z]' '[a-z]'`
5*2b15cb3dSCy Schubert	case "$1" in
6*2b15cb3dSCy Schubert		hp-ux)  case "$3" in
7*2b15cb3dSCy Schubert			*.10.*) val=1 ;;
8*2b15cb3dSCy Schubert			*.09.03 | *.09.10) case "$5" in
9*2b15cb3dSCy Schubert				9000/3*) val=1 ;;
10*2b15cb3dSCy Schubert				*)       val=0 ;;
11*2b15cb3dSCy Schubert				esac ;;
12*2b15cb3dSCy Schubert			*) val=0 ;;
13*2b15cb3dSCy Schubert			esac
14*2b15cb3dSCy Schubert			;;
15*2b15cb3dSCy Schubert	*)
16*2b15cb3dSCy Schubert	esac
17*2b15cb3dSCy Schubertfi
18*2b15cb3dSCy Schubertexit $val
19