Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 36146 Details for
Bug 58222
kernel 2.6 + alsa support for slmodem 2.9.9
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebegin place, init and unload updated
slmodem (text/plain), 2.06 KB, created by
Stefan Schweizer (RETIRED)
on 2004-07-25 13:21:34 UTC
(
hide
)
Description:
ebegin place, init and unload updated
Filename:
MIME Type:
Creator:
Stefan Schweizer (RETIRED)
Created:
2004-07-25 13:21:34 UTC
Size:
2.06 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># 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.5 2004/07/14 23:10:35 agriffis Exp $ > >depend() { > need logger >} > > >checkconfig() { > if [ -z "${COUNTRY}" ]; then > eerror "You need to config /etc/conf.d/slmodem first" > return 1 > fi >} > >function loadsalsa { > 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} --alsa hw:${HW_SLOT} > > return ${?} >} > >function loadsmodule { > modprobe ${MODULE}; > > if [ "$?" -gt 0 ] > then > eerror "Missing ${MODULE}. Please set up /etc/conf.d/slmodem" > eend 1; > fi > > #sleep as per http://bugs.gentoo.org/show_bug.cgi?id=47947#c59 > local COUNT=0 > while [ ! -c ${DEV} -a ${COUNT} -lt 4 ]; > do > sleep 0.5 > einfo "Waiting for ${MODULE} modem driver initialisation" > COUNT=`expr ${COUNT} + 1` > done > > if [ ! -c ${DEV} ]; > then > eerror "Module - ${MODULE} failed to initialise device ${DEVICE}" > eend 1 > fi > > 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} ${DEV} > > return ${?} >} > >start() { > # if we use alsa, the only thing we need is ttySL0, which is created by > # slmodemd when started (points to a pts) > > if [ "${MODULE}" == "alsa" ]; then > loadsalsa > else > loadsmodule > fi > > result=${?} > > test ! -z "${LN_DEV}" && /bin/ln -s ${DEV} ${LN_DEV} 2> /dev/null > > eend ${result} >} > >stop() { > ebegin "Shutting down slmodemd" > start-stop-daemon --stop --quiet --pidfile /var/run/slmodemd.pid && rm /var/run/slmodemd.pid > result=${?} > test "${MODULE}" != "alsa" && { sleep 2 && modprobe -r ${MODULE} 2> /dev/null; } & > unlink ${LN_DEV} 2> /dev/null > eend ${result} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 58222
:
36094
|
36095
|
36106
|
36139
|
36144
|
36145
|
36146
|
36190
|
36278
|
36286
|
36816
|
36817
|
36823
|
36833
|
36865