| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | program=/sbin/nslink |
| 4 | pidfile=/var/run/nslink.pid |
| 5 | |
| 6 | start_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 | |