aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/gpio-cdev/nu801/files/nu801.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/gpio-cdev/nu801/files/nu801.init')
-rwxr-xr-xpackage/system/gpio-cdev/nu801/files/nu801.init15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/system/gpio-cdev/nu801/files/nu801.init b/package/system/gpio-cdev/nu801/files/nu801.init
new file mode 100755
index 0000000000..5613a92f6e
--- /dev/null
+++ b/package/system/gpio-cdev/nu801/files/nu801.init
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+START=15
+STOP=94
+USE_PROCD=1
+
+start_service() {
+ . /lib/functions.sh
+
+ procd_open_instance
+ procd_set_param command /usr/sbin/nu801 "$(board_name)"
+ procd_set_param respawn 5 1 5
+ procd_close_instance
+}