Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Comando
- clear
- # Estrutura de decisao: Saber se o arquivo existe
- if [[ -f /usr/sbin/ntpdate ]]
- then
- ntpdate ntp.ubuntu.com && clear
- else
- apt-get -y install ntpdate
- ntpdate ntp.ubuntu.com && clear
- fi
- echo -e "\033[01;31m# Hora Ajustada \033[01;00m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement