diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-10 11:29:25 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-10 11:29:25 +0000 |
commit | 609d7acd796c05a8458d898f11f3991d32d099ec (patch) | |
tree | 4478f1fde8386d87e442f67c0cfa6d3e2879ff67 /main/devicemaster-linux/nslink.initd | |
parent | 6d6d11d6dadd52c8f4337fa3adaefff4f91b7183 (diff) | |
download | aports-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.initd | 16 |
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 +} + |