Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156457 - net-dialup/slmodem init scripts don't have option for extended parameters
Summary: net-dialup/slmodem init scripts don't have option for extended parameters
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
: 156458 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-27 15:13 UTC by edoceo
Modified: 2006-12-01 02:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the slmodem init scripts (slmodem.patch,1.08 KB, patch)
2006-11-27 15:37 UTC, edoceo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description edoceo 2006-11-27 15:13:42 UTC
I don't think I really need emerge --info, it's just a patch for files in /etc/conf.d/ and /etc/init.d/

Basically slmodemd requires the '-r' parameter to run with ring detection, something I always need.  Without this option slmodem will not "hear" the incoming ring any my hylafax or minicom won't answer :(

So I patched /etc/conf.d/slmodem like so:

--- slmodem.orig        2006-11-27 14:59:35.000000000 -0800
+++ slmodem     2006-11-27 15:03:35.000000000 -0800
@@ -31,3 +31,8 @@
 MODULE=slamr
 # or
 # MODULE=slusb
+
+# Include Extra slmodemd options here
+# -r   = enables ring detection (needed for Hylafax faxgetty to answer)
+# -l 5 = Logging Level
+SLMODEM_OPTS="-r"

And patched /etc/init.d/slmodem like this:

--- slmodem.orig        2006-11-27 14:59:57.000000000 -0800
+++ slmodem     2006-11-27 15:04:02.000000000 -0800
@@ -22,7 +22,7 @@
        ebegin "Starting slmodemd for ${DEV}"
        start-stop-daemon --start --background --nicelevel=${NICE} --make-pidfile \
                --pidfile /var/run/slmodemd.pid --startas /usr/sbin/slmodemd \
-               -- -country=${COUNTRY} -g=${GROUP} --alsa ${HW_SLOT}
+               -- -country=${COUNTRY} -g=${GROUP} --alsa ${SLMODEM_OPTS} ${HW_SLOT}
        return ${?}
 }

@@ -49,7 +49,7 @@
        ebegin "Starting slmodemd for ${DEV}"
        start-stop-daemon --start --background --nicelevel=${NICE} --make-pidfile \
                --pidfile /var/run/slmodemd.pid --startas /usr/sbin/slmodemd \
-               -- -country=${COUNTRY} -g=${GROUP} ${MDEV}
+               -- -country=${COUNTRY} -g=${GROUP} ${SLMODEM_OPTS} ${MDEV}
        return ${?}
 }


Just so I could add "-r" to SLMODEM_OPTS.  I suppose it could also be a "RING=1|0" option in /etc/conf.d/slmodem but SLMODEM_OPTS was simpler for me.

Thanks
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-27 15:30:28 UTC
*** Bug 156458 has been marked as a duplicate of this bug. ***
Comment 2 edoceo 2006-11-27 15:37:02 UTC
Created attachment 102873 [details, diff]
Patch for the slmodem init scripts

Sorry for the duplicate posts on the bugs, I got a 500 error when posting the original bug, my bad.  I also attached this to 156458.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2006-12-01 02:00:05 UTC
fixed in -r3. thanks!