summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-09 04:35:17 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-09 04:35:17 +0100
commitc358b177d356fa3f353810e222daa96541660680 (patch)
tree21fdb37c0779a4004e157b385db702d9bbf3d43a
parent5903cd50db3ade20899298e7377a0d29c563c904 (diff)
downloadap01-c358b177d356fa3f353810e222daa96541660680.tar
ap01-c358b177d356fa3f353810e222daa96541660680.tar.gz
ap01-c358b177d356fa3f353810e222daa96541660680.tar.bz2
ap01-c358b177d356fa3f353810e222daa96541660680.tar.xz
ap01-c358b177d356fa3f353810e222daa96541660680.zip
...
-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