diff --git a/README.md b/README.md index fcb9c50..81176e3 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ will create the symbolic link for each script in the \ 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 diff --git a/sync-date b/sync-date new file mode 100755 index 0000000..7a3525a --- /dev/null +++ b/sync-date @@ -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: //')" +