summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/scripts/hpadjtime.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/scripts/hpadjtime.sh')
-rwxr-xr-xcontrib/ntp/scripts/hpadjtime.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/ntp/scripts/hpadjtime.sh b/contrib/ntp/scripts/hpadjtime.sh
new file mode 100755
index 0000000..3de2a40
--- /dev/null
+++ b/contrib/ntp/scripts/hpadjtime.sh
@@ -0,0 +1,18 @@
+#! /bin/sh
+val=1
+if [ -f /bin/uname -o -f /usr/bin/uname ]; then
+ set `uname -a | tr '[A-Z]' '[a-z]'`
+ case "$1" in
+ hp-ux) case "$3" in
+ *.10.*) val=1 ;;
+ *.09.03 | *.09.10) case "$5" in
+ 9000/3*) val=1 ;;
+ *) val=0 ;;
+ esac ;;
+ *) val=0 ;;
+ esac
+ ;;
+ *)
+ esac
+fi
+exit $val
OpenPOWER on IntegriCloud