diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-09 04:35:17 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-09 04:35:17 +0100 |
commit | c358b177d356fa3f353810e222daa96541660680 (patch) | |
tree | 21fdb37c0779a4004e157b385db702d9bbf3d43a /files | |
parent | 5903cd50db3ade20899298e7377a0d29c563c904 (diff) | |
download | ap01-c358b177d356fa3f353810e222daa96541660680.tar ap01-c358b177d356fa3f353810e222daa96541660680.tar.gz ap01-c358b177d356fa3f353810e222daa96541660680.tar.bz2 ap01-c358b177d356fa3f353810e222daa96541660680.tar.xz ap01-c358b177d356fa3f353810e222daa96541660680.zip |
...
Diffstat (limited to 'files')
-rw-r--r-- | files/files/etc/hotplug.d/ntp/99-dayled | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | files/files/usr/local/sbin/dayled.sh | 8 |
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 | ||
3 | local latitude="$(uci get dayled.@dayled[0].latitude)" | 3 | latitude="$(uci get dayled.@dayled[0].latitude)" |
4 | local longitude="$(uci get dayled.@dayled[0].longitude)" | 4 | longitude="$(uci get dayled.@dayled[0].longitude)" |
5 | local offset="$(uci get dayled.@dayled[0].offset)" | 5 | offset="$(uci get dayled.@dayled[0].offset)" |
6 | local twilight="$(uci get dayled.@dayled[0].twilight)" | 6 | twilight="$(uci get dayled.@dayled[0].twilight)" |
7 | 7 | ||
8 | act() { | 8 | act() { |
9 | sunwait $1 $twilight $offset $latitude $longitude >/dev/null | 9 | sunwait $1 $twilight $offset $latitude $longitude >/dev/null |