Browse Source

sysc-date: synchronize system time

master
Maxim Likhachev 5 years ago
parent
commit
dbda311e05
  1. 1
      README.md
  2. 6
      sync-date

1
README.md

@ -72,6 +72,7 @@ will create the symbolic link for each script in the \<path> directory. @@ -72,6 +72,7 @@ will create the symbolic link for each script in the \<path> directory.
- [defgroups](defgroups) adds a user to default system groups.
- [passgen](passgen) creates the strong passwords.
- [sync-date](sync-date) sets system time according to Google.
## Development tools

6
sync-date

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
#!/bin/bash
# (c) https://unix.stackexchange.com/a/251575
date -s "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //')"
Loading…
Cancel
Save