/[gentoo-x86]/net-wireless/chillispot/files/chillispot
Gentoo

Contents of /net-wireless/chillispot/files/chillispot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Mar 5 11:42:38 2006 UTC (14 years, 7 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
- init script provided by Michele Beltrame bug #124698
(Portage version: 2811-svn)

1 #!/sbin/runscript
2 # Copyright 1999-2004 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header$
5
6 depend() {
7 use net logger
8 }
9
10
11 checkconfig() {
12 if [ -f /etc/chilli.conf ]; then
13 return 0;
14 else
15 eerror "Error starting chillispot. Please create /etc/chilli.conf before."
16 return 1;
17 fi
18 }
19
20 start() {
21 checkconfig || return 1
22 ebegin "Starting Chillispot"
23
24 start-stop-daemon --start --quiet \
25 --exec /usr/sbin/chilli
26 eend $?
27 }
28
29 stop() {
30 ebegin "Stopping Chillispot"
31 start-stop-daemon --stop --pidfile /var/run/chilli.pid --quiet
32 eend $?
33 }

  ViewVC Help
Powered by ViewVC 1.1.20