From c358b177d356fa3f353810e222daa96541660680 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 9 Jan 2022 04:35:17 +0100 Subject: ... --- files/files/etc/hotplug.d/ntp/99-dayled | 2 +- files/files/usr/local/sbin/dayled.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 files/files/usr/local/sbin/dayled.sh 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 @@ /usr/local/sbin/dayled.sh poll -/etc/init.d/dayled start \ No newline at end of file +/etc/init.d/dayled start diff --git a/files/files/usr/local/sbin/dayled.sh b/files/files/usr/local/sbin/dayled.sh old mode 100644 new mode 100755 index f073008..415aa51 --- a/files/files/usr/local/sbin/dayled.sh +++ b/files/files/usr/local/sbin/dayled.sh @@ -1,9 +1,9 @@ #!/bin/sh -local latitude="$(uci get dayled.@dayled[0].latitude)" -local longitude="$(uci get dayled.@dayled[0].longitude)" -local offset="$(uci get dayled.@dayled[0].offset)" -local twilight="$(uci get dayled.@dayled[0].twilight)" +latitude="$(uci get dayled.@dayled[0].latitude)" +longitude="$(uci get dayled.@dayled[0].longitude)" +offset="$(uci get dayled.@dayled[0].offset)" +twilight="$(uci get dayled.@dayled[0].twilight)" act() { sunwait $1 $twilight $offset $latitude $longitude >/dev/null -- cgit v1.2.3