/[gentoo-x86]/net-misc/cbqinit/files/rc_cbqinit-r1
Gentoo

Diff of /net-misc/cbqinit/files/rc_cbqinit-r1

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1#!/sbin/runscript 1#!/sbin/runscript
2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2
2 4
3depend() { 5depend() {
4 need net 6 need net
5} 7}
6 8
9checkconfig() {
10 if [ ! -d /etc/cbqinit ] ; then
11 eerror "You need to create some config files in /etc/cbqinit first"
12 eerror "Please read the README file"
13 return 1
14 fi
15
16 return 0
17}
18
7start() { 19start() {
20 checkconfig || return 1
8 ebegin "Starting cbqinit" 21 ebegin "Starting cbqinit"
9 /usr/sbin/cbqinit start 22 /usr/sbin/cbqinit start
10 eend $? 23 eend $?
11} 24}
12 25

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20