aboutsummaryrefslogtreecommitdiffstats
path: root/testing/devicemaster-linux/nslink.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/devicemaster-linux/nslink.initd')
-rw-r--r--testing/devicemaster-linux/nslink.initd16
1 files changed, 16 insertions, 0 deletions
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
+}
+