[zsh] No need to sudo for ntp
This commit is contained in:
@ -26,7 +26,7 @@ eosup() {
|
||||
|
||||
# quick way to fix clock drift in UTM VM
|
||||
toggle_ntp() {
|
||||
sudo timedatectl set-ntp "$(
|
||||
timedatectl set-ntp "$(
|
||||
timedatectl show -p NTP --value | grep -qi '^yes$' && echo false || echo true
|
||||
)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user