forked from Ivasoft/openwrt
gpio-cdev: add nu801 userspace driver
This adds a userspace interpretation of the nu801 driver used by Meraki hardware. Previously this was a driver that was added per target, but as multiple targets now have this driver, we should move to something that can be shared by all targets since no driver exists upstream. Co-developed-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Chris Blake <chrisrblake93@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
committed by
Christian Lamparter
parent
e166ee4ff1
commit
f536f5ebdd
15
package/system/gpio-cdev/nu801/files/nu801.init
Executable file
15
package/system/gpio-cdev/nu801/files/nu801.init
Executable file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user