blob: 1dbf188eb38cca6f1249799a412f88e315c66bde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.9.init,v 1.3 2004/06/08 05:38:04 dragonheart Exp $
depend() {
need logger
}
checkconfig() {
if [ -z "${COUNTRY}" ]; then
eerror "You need to config /etc/conf.d/slmodem first"
return 1
fi
}
start() {
ebegin "Starting slmodemd for ${DEV}"
modprobe ${MODULE}
start-stop-daemon --start --background --nicelevel=${NICE} --make-pidfile \
--pidfile /var/run/slmodemd.pid --startas /usr/sbin/slmodemd \
-- -country=${COUNTRY} -g=${GROUP} ${DEV}
eend $?
}
stop() {
ebegin "Shutting down slmodemd"
start-stop-daemon --stop --quiet --pidfile /var/run/slmodemd.pid && rm /var/run/slmodemd.pid
modprobe -r ${MODULE}
eend $?
}
|