Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 156457
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Dialup Developers <net-dialup@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: edoceo <code@edoceo.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
slmodem.patch Patch for the slmodem init scripts patch edoceo 2006-11-27 15:37 0000 1.08 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 156457 depends on: Show dependency tree
Bug 156457 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-11-27 15:13 0000
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 From Jakub Moc (RETIRED) 2006-11-27 15:30:28 0000 -------
*** Bug 156458 has been marked as a duplicate of this bug. ***

------- Comment #2 From edoceo 2006-11-27 15:37:02 0000 -------
Created an attachment (id=102873) [details]
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 From Alin Năstac 2006-12-01 02:00:05 0000 -------
fixed in -r3. thanks!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug