summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/files/etc/hotplug.d/ntp/99-dayled2
-rwxr-xr-x[-rw-r--r--]files/files/usr/local/sbin/dayled.sh8
2 files changed, 5 insertions, 5 deletions
diff --git a/files/files/etc/hotplug.d/ntp/99-dayled b/files/files/etc/hotplug.d/ntp/99-dayled
index adbe479..b5ae5aa 100644
--- a/files/files/etc/hotplug.d/ntp/99-dayled
+++ b/files/files/etc/hotplug.d/ntp/99-dayled
@@ -6,4 +6,4 @@
6 6
7/usr/local/sbin/dayled.sh poll 7/usr/local/sbin/dayled.sh poll
8 8
9/etc/init.d/dayled start \ No newline at end of file 9/etc/init.d/dayled start
diff --git a/files/files/usr/local/sbin/dayled.sh b/files/files/usr/local/sbin/dayled.sh
index f073008..415aa51 100644..100755
--- a/files/files/usr/local/sbin/dayled.sh
+++ b/files/files/usr/local/sbin/dayled.sh
@@ -1,9 +1,9 @@
1#!/bin/sh 1#!/bin/sh
2 2
3local latitude="$(uci get dayled.@dayled[0].latitude)" 3latitude="$(uci get dayled.@dayled[0].latitude)"
4local longitude="$(uci get dayled.@dayled[0].longitude)" 4longitude="$(uci get dayled.@dayled[0].longitude)"
5local offset="$(uci get dayled.@dayled[0].offset)" 5offset="$(uci get dayled.@dayled[0].offset)"
6local twilight="$(uci get dayled.@dayled[0].twilight)" 6twilight="$(uci get dayled.@dayled[0].twilight)"
7 7
8act() { 8act() {
9 sunwait $1 $twilight $offset $latitude $longitude >/dev/null 9 sunwait $1 $twilight $offset $latitude $longitude >/dev/null