Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##DESCARGA NTP
- sudo apt install ntp
- sudo apt install ntpstat
- ##LEVANTA EL SERVICIO
- service ntp start -x
- /etc/init.d/ntp start
- ##CHEQUEA RESULTADO DE CONEXION
- result=$(ntpstat);
- conected=$( echo $result | awk '{print $1}')
- if [ $conected = "synchronised" ]
- then
- echo "Conectado correctamente"
- else
- echo "Fallo la conexión"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement