From 8bedd034a2560e3090de51dc2b25031cd5d5e52d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 23 Oct 2014 08:05:55 +0000 Subject: testing/devicemaster-linux: new aport Userspace tools for NS-Link Device Drivers http://www.comtrol.com/resources/product-resources-white-papers/ns-link-device-drivers ref #761 --- testing/devicemaster-linux/nslink.initd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 testing/devicemaster-linux/nslink.initd (limited to 'testing/devicemaster-linux/nslink.initd') diff --git a/testing/devicemaster-linux/nslink.initd b/testing/devicemaster-linux/nslink.initd new file mode 100644 index 0000000000..5e4b869050 --- /dev/null +++ b/testing/devicemaster-linux/nslink.initd @@ -0,0 +1,16 @@ +#!/sbin/runscript + +program=/sbin/nslink +pidfile=/var/run/nslink.pid + +start_pre() { + if ! [ -f /etc/nslink.conf ]; then + eerror "Configuration file /etc/nslink.conf not found" + return 1 + fi + + if ! grep -q -w nslink /proc/modules; then + modprobe nslink + fi +} + -- cgit v1.2.3