Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 221429 Details for
Bug 285016
[ebuild] net-dialup/martian: an alternative to net-dialup/ltmodem
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/martian-modem.init.d
martian-modem.init.d (text/plain), 1.34 KB, created by
Doktor Notor
on 2010-02-27 14:09:04 UTC
(
hide
)
Description:
files/martian-modem.init.d
Filename:
MIME Type:
Creator:
Doktor Notor
Created:
2010-02-27 14:09:04 UTC
Size:
1.34 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >daemon=/usr/sbin/martian_modem >description="Initscript to run the userspace daemon for winmodems supported by martian-modem driver" > >: ${device:=${DEVICE:-/dev/ttySM0}} >: ${logfile:=${LOGFILE:-/var/log/martian-modem.log}} >: ${user:=${USER:-nobody}} >: ${group:=${GROUP:-dialout}} >: ${debug_level:=${DEBUG_LEVEL:-1}} >: ${use_syslog:=${USE_SYSLOG:-YES}} >pidfile=/var/run/${SVCNAME}.pid > >depend() { > need localmount > [ "${use_syslog}" = "YES" ] && use syslog >} > >start() { > if [ -e /proc/modules ] ; then > local modem= > for modem in /dev/modem /dev/ttySM[0-9]* ; do > [ -e "${modem}" ] && break > done > fi > if [ ! -e "${modem}" ] ; then > modprobe martian-dev || eerror $? "Error loading martian-dev module" > fi > > if ! yesno "${use_syslog}" ; then > martian_opts="${MARTIAN_OPTS} --log=${logfile}" > else > martian_opts="${MARTIAN_OPTS} --syslog" > fi > > ebegin "Starting ${SVCNAME}" > start-stop-daemon --start --exec ${daemon} --user ${user}:${group} \ > --pidfile ${pidfile} --make-pidfile --background \ > -- ${martian_opts} --debug=${debug_level} ${device} > eend $? >} > >stop() { > ebegin "Stopping ${SVCNAME}" > start-stop-daemon --stop --pidfile ${pidfile} > eend $? >}
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 285016
:
204139
|
221405
|
221407
| 221429 |
221431
|
221433
|
223113
|
277289
|
326044
|
326046