summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/zaptel/files/zaptel.rc6')
-rw-r--r--net-misc/zaptel/files/zaptel.rc610
1 files changed, 5 insertions, 5 deletions
diff --git a/net-misc/zaptel/files/zaptel.rc6 b/net-misc/zaptel/files/zaptel.rc6
index f7e91e11222a..6c5b4f48e547 100644
--- a/net-misc/zaptel/files/zaptel.rc6
+++ b/net-misc/zaptel/files/zaptel.rc6
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/files/zaptel.rc6,v 1.2 2004/07/15 00:16:05 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/files/zaptel.rc6,v 1.3 2005/02/03 22:40:04 stkn Exp $
depend() {
need net
@@ -9,11 +9,11 @@ depend() {
checkconfig() {
if [ ! -f /etc/zaptel.conf ]; then
- echo "Please create /etc/zaptel.conf!"
- return 0
+ eerror "Please create /etc/zaptel.conf!"
+ return 1
fi
- return 1
+ return 0
}
create_devices() {
@@ -29,7 +29,7 @@ create_devices() {
start() {
- checkconfig || exit 1
+ checkconfig || return 1
if [ ! -d /dev/zap ] && [ "$ZAP_FORCE_CREATE" != "no" ]; then
einfo "Creating zaptel device nodes"