summary refs log tree commit diff
path: root/os/etc/s6-rc/src/wlsunset/run
diff options
context:
space:
mode:
Diffstat (limited to 'os/etc/s6-rc/src/wlsunset/run')
-rw-r--r--os/etc/s6-rc/src/wlsunset/run9
1 files changed, 9 insertions, 0 deletions
diff --git a/os/etc/s6-rc/src/wlsunset/run b/os/etc/s6-rc/src/wlsunset/run
new file mode 100644
index 0000000..f3b2be4
--- /dev/null
+++ b/os/etc/s6-rc/src/wlsunset/run
@@ -0,0 +1,9 @@
+#!/bin/execlineb -P
+
+envfile /etc/s6-rc/config/user.conf
+importas -iu lat LAT
+importas -iu lon LON
+
+#redirfd -w 1 /dev/null
+#redirfd -w 2 /dev/null
+runas /usr/bin/wlsunset -l ${lat} -L ${lon}