summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2004-06-08 05:38:04 +0000
committerDaniel Black <dragonheart@gentoo.org>2004-06-08 05:38:04 +0000
commit5148f2b6852b82e232a09f806d5c32359ba4c6bb (patch)
treedf01913d0b241fab6d0028de8d91944920cdedfd /net-dialup/slmodem/files
parentNew init script setup for rpc.yppasswdd as suggested on bug #40048 (diff)
downloadhistorical-5148f2b6852b82e232a09f806d5c32359ba4c6bb.tar.gz
historical-5148f2b6852b82e232a09f806d5c32359ba4c6bb.tar.bz2
historical-5148f2b6852b82e232a09f806d5c32359ba4c6bb.zip
Fixes and updates as per bug #47947 comments 31,35,36
Diffstat (limited to 'net-dialup/slmodem/files')
-rw-r--r--net-dialup/slmodem/files/digest-slmodem-2.9.7-r21
-rw-r--r--net-dialup/slmodem/files/slmodem-2.9.conf4
-rw-r--r--net-dialup/slmodem/files/slmodem-2.9.devfs11
-rw-r--r--net-dialup/slmodem/files/slmodem-2.9.init4
4 files changed, 16 insertions, 4 deletions
diff --git a/net-dialup/slmodem/files/digest-slmodem-2.9.7-r2 b/net-dialup/slmodem/files/digest-slmodem-2.9.7-r2
new file mode 100644
index 000000000000..45a1ca010886
--- /dev/null
+++ b/net-dialup/slmodem/files/digest-slmodem-2.9.7-r2
@@ -0,0 +1 @@
+MD5 741aec69a9cdb95fbce21105b4f1924c slmodem-2.9.7.tar.gz 648986
diff --git a/net-dialup/slmodem/files/slmodem-2.9.conf b/net-dialup/slmodem/files/slmodem-2.9.conf
index f03438aac742..659e8748cbd9 100644
--- a/net-dialup/slmodem/files/slmodem-2.9.conf
+++ b/net-dialup/slmodem/files/slmodem-2.9.conf
@@ -3,6 +3,10 @@
MODULE=slamr
# or MODULE=slusb
+# Raise priority to reduce modem dropouts
+NICE=-6
+
+
DEV=/dev/slamr0
LN_DEV=/dev/modem
#MODEM_DAEMON=/usr/sbin/slmodemd
diff --git a/net-dialup/slmodem/files/slmodem-2.9.devfs b/net-dialup/slmodem/files/slmodem-2.9.devfs
index 16e49322c72c..719f95f303d2 100644
--- a/net-dialup/slmodem/files/slmodem-2.9.devfs
+++ b/net-dialup/slmodem/files/slmodem-2.9.devfs
@@ -1,8 +1,15 @@
# slmodem kernel modules' devfs configuration file
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.9.devfs,v 1.2 2004/06/05 10:41:21 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.9.devfs,v 1.3 2004/06/08 05:38:04 dragonheart Exp $
# Create /dev/modem for /dev/slamr0 (Change to suit your setup)
LOOKUP ^slamr0$ MODLOAD ACTION slamr
-LOOKUP ^slamr0$ CFUNCTION GLOBAL mksymlink slamr0 modem
+LOOKUP ^slamr0$ CFUNCTION GLOBAL mksymlink ttySL0 modem
REGISTER ^slamr0$ CFUNCTION GLOBAL mksymlink $devname modem
UNREGISTER ^slamr0$ CFUNCTION GLOBAL unlink modem
+
+# Create /dev/modem for /dev/slusb0 (Change to suit your setup)
+LOOKUP ^slusb0$ MODLOAD ACTION slusb
+LOOKUP ^slusb0$ CFUNCTION GLOBAL mksymlink ttySL0 modem
+REGISTER ^slusb0$ CFUNCTION GLOBAL mksymlink $devname modem
+UNREGISTER ^slusb0$ CFUNCTION GLOBAL unlink modem
+
diff --git a/net-dialup/slmodem/files/slmodem-2.9.init b/net-dialup/slmodem/files/slmodem-2.9.init
index fa1236e90cdc..1dbf188eb38c 100644
--- a/net-dialup/slmodem/files/slmodem-2.9.init
+++ b/net-dialup/slmodem/files/slmodem-2.9.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.9.init,v 1.2 2004/06/05 10:41:21 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.9.init,v 1.3 2004/06/08 05:38:04 dragonheart Exp $
depend() {
need logger
@@ -18,7 +18,7 @@ checkconfig() {
start() {
ebegin "Starting slmodemd for ${DEV}"
modprobe ${MODULE}
- start-stop-daemon --start --background --make-pidfile \
+ start-stop-daemon --start --background --nicelevel=${NICE} --make-pidfile \
--pidfile /var/run/slmodemd.pid --startas /usr/sbin/slmodemd \
-- -country=${COUNTRY} -g=${GROUP} ${DEV}
eend $?