aboutsummaryrefslogtreecommitdiffstats
path: root/main/devicemaster-linux/nslink.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-10 11:29:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-10 11:29:25 +0000
commit609d7acd796c05a8458d898f11f3991d32d099ec (patch)
tree4478f1fde8386d87e442f67c0cfa6d3e2879ff67 /main/devicemaster-linux/nslink.initd
parent6d6d11d6dadd52c8f4337fa3adaefff4f91b7183 (diff)
downloadaports-609d7acd796c05a8458d898f11f3991d32d099ec.tar.bz2
aports-609d7acd796c05a8458d898f11f3991d32d099ec.tar.xz
main/devicemaster-linux*: move from testing
Diffstat (limited to 'main/devicemaster-linux/nslink.initd')
-rw-r--r--main/devicemaster-linux/nslink.initd16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/devicemaster-linux/nslink.initd b/main/devicemaster-linux/nslink.initd
new file mode 100644
index 0000000000..5e4b869050
--- /dev/null
+++ b/main/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
+}
+