Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ntpd: Automatically run and set default timezone

The default timezone is now the east coast of the US.
Hopefully in the future, this will be made a little more
friendly to everyone else.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
  • Loading branch information...
commit 2f5d8afb1feee1514766ca6b340ada6b12a4bbb4 1 parent 4b14130
@fhunleth fhunleth authored
View
1  board/nerves-project/beaglebone/rootfs-additions/etc/TZ
@@ -0,0 +1 @@
+EST5EDT,M3.2.0,M11.1.0
View
15 board/nerves-project/beaglebone/rootfs-additions/etc/init.d/S98ntpd
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+case "$1" in
+ start|"")
+ ntpd -p pool.ntp.org
+ ;;
+ stop)
+ killall ntpd
+ ;;
+ *)
+ echo "Usage: $0 {start|stop}" >&2
+ exit 1
+ ;;
+esac
+
Please sign in to comment.
Something went wrong with that request. Please try again.