aboutsummaryrefslogtreecommitdiffstats
path: root/main/devicemaster-linux/nslink.initd
blob: c812adaf2e5de4a0ccd5e8346b42c81058fbbcf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/openrc-run

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
}