PageRenderTime 63ms CodeModel.GetById 56ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/ntp/scripts/hpadjtime.sh

https://bitbucket.org/freebsd/freebsd-head/
Shell | 18 lines | 17 code | 0 blank | 1 comment | 1 complexity | a48466adb7bda0f3739696a1be4f33ec MD5 | raw file
 1#! /bin/sh
 2val=1
 3if [ -f /bin/uname -o -f /usr/bin/uname ]; then
 4	set `uname -a | tr '[A-Z]' '[a-z]'`
 5	case "$1" in
 6		hp-ux)  case "$3" in
 7			*.10.*) val=1 ;;
 8			*.09.03 | *.09.10) case "$5" in
 9				9000/3*) val=1 ;;
10				*)       val=0 ;;
11				esac ;;
12			*) val=0 ;;
13			esac
14			;;
15	*)
16	esac
17fi
18exit $val