projects/aports·blob master · refs

16 lines · 262 B

1#!/sbin/openrc-run
2
3program=/sbin/nslink
4pidfile=/var/run/nslink.pid
5
6start_pre() {
7 if ! [ -f /etc/nslink.conf ]; then
8 eerror "Configuration file /etc/nslink.conf not found"
9 return 1
10 fi
11
12 if ! grep -q -w nslink /proc/modules; then
13 modprobe nslink
14 fi
15}
16