Skip to content

Instantly share code, notes, and snippets.

View bllngr's full-sized avatar

Julius Bullinger bllngr

View GitHub Profile
@bllngr
bllngr / ntp2hwc.sh
Created January 27, 2015 12:03
Synchronize time between hardware clock and NTP server
#!/bin/bash
#
# Author: Thomas (https://raspberrypi.stackexchange.com/users/9732/thomas)
# Modified-by: Julius Bullinger (https://github.com/sqrt)
# Version: 0.2
#
# Synchronize time between hardware clock and NTP server
# Make sure only root can run this script
if [[ $EUID -ne 0 ]]; then