diff options
author | 2006-03-05 11:42:38 +0000 | |
---|---|---|
committer | 2006-03-05 11:42:38 +0000 | |
commit | 32ba8b9f80aca3b5ccfd1da4affcbe86428be5bf (patch) | |
tree | 2bbb1dbbce9e045f510fb760de1343865145de04 /net-wireless/chillispot/files | |
parent | imported ebuild from gentoo.de (diff) | |
download | gentoo-2-32ba8b9f80aca3b5ccfd1da4affcbe86428be5bf.tar.gz gentoo-2-32ba8b9f80aca3b5ccfd1da4affcbe86428be5bf.tar.bz2 gentoo-2-32ba8b9f80aca3b5ccfd1da4affcbe86428be5bf.zip |
- init script provided by Michele Beltrame bug #124698
(Portage version: 2811-svn)
Diffstat (limited to 'net-wireless/chillispot/files')
-rw-r--r-- | net-wireless/chillispot/files/chillispot | 33 | ||||
-rw-r--r-- | net-wireless/chillispot/files/digest-chillispot-1.0 | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/net-wireless/chillispot/files/chillispot b/net-wireless/chillispot/files/chillispot new file mode 100644 index 000000000000..6ff716a265de --- /dev/null +++ b/net-wireless/chillispot/files/chillispot @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/chillispot/files/chillispot,v 1.1 2006/03/05 11:42:38 solar Exp $ + +depend() { + use net logger +} + + +checkconfig() { + if [ -f /etc/chilli.conf ]; then + return 0; + else + eerror "Error starting chillispot. Please create /etc/chilli.conf before." + return 1; + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting Chillispot" + + start-stop-daemon --start --quiet \ + --exec /usr/sbin/chilli + eend $? +} + +stop() { + ebegin "Stopping Chillispot" + start-stop-daemon --stop --pidfile /var/run/chilli.pid --quiet + eend $? +} diff --git a/net-wireless/chillispot/files/digest-chillispot-1.0 b/net-wireless/chillispot/files/digest-chillispot-1.0 index 9a6acedb49eb..13e55a87593e 100644 --- a/net-wireless/chillispot/files/digest-chillispot-1.0 +++ b/net-wireless/chillispot/files/digest-chillispot-1.0 @@ -1 +1,3 @@ MD5 997827a9302a85920cfbc1334092ac0c chillispot-1.0.tar.gz 440103 +RMD160 752ab3adc4313059c2752b11ec5ba2eee9cebc2a chillispot-1.0.tar.gz 440103 +SHA256 ea00bf63d420f515b9ec034eff6ca04c517459232899b7582f8435b7c097eebf chillispot-1.0.tar.gz 440103 |