summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/zaptel/files/zaptel.rc6')
-rw-r--r--net-misc/zaptel/files/zaptel.rc654
1 files changed, 0 insertions, 54 deletions
diff --git a/net-misc/zaptel/files/zaptel.rc6 b/net-misc/zaptel/files/zaptel.rc6
deleted file mode 100644
index 3295422..0000000
--- a/net-misc/zaptel/files/zaptel.rc6
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/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.4 2005/05/11 12:36:55 stkn Exp $
-
-depend() {
- need net
-}
-
-checkconfig() {
- if [ ! -f /etc/zaptel.conf ]; then
- eerror "Please create /etc/zaptel.conf!"
- return 1
- fi
-
- return 0
-}
-
-create_devices() {
- mkdir -p -m 0775 /dev/zap
- for i in `seq 1 250`; do
- mknod /dev/zap/$i c 196 $i
- done
- mknod /dev/zap/ctl c 196 0
- mknod /dev/zap/timer c 196 253
- mknod /dev/zap/channel c 196 254
- mknod /dev/zap/pseudo c 196 255
-
- chown -R root:dialout /dev/zap
- chmod -R u=rwX,g=rwX,o= /dev/zap
-}
-
-
-start() {
- checkconfig || return 1
-
- if [ ! -d /dev/zap ] && [ "$ZAP_FORCE_CREATE" != "no" ]; then
- einfo "Creating zaptel device nodes"
- create_devices
- fi
-
- ebegin "Starting zaptel"
- /sbin/ztcfg
- eend $?
-}
-
-stop() {
- ebegin "Stopping zaptel"
- /sbin/ztcfg -s
- eend $?
-}
-
-
-# vim:ts=4