UNPKG

227 Bapplication/x-shView Raw
1#!/bin/bash
2
3case "$1" in
4 ntpUpdate)
5 # update time
6 systemctl stop ntp
7 ntpd -gq
8 systemctl start ntp
9 ;;
10 *)
11 echo "Usage system.sh {ntpUpdate}"
12 exit 1
13 ;;
14esac
15
16exit 0