Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 173608 Details for
Bug 249112
Removal: net-misc/ptrtd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Init scripts adding support for other arguments
ptrtd-init.diff (text/plain), 1.66 KB, created by
Petr Pisar
on 2008-11-27 20:12:07 UTC
(
hide
)
Description:
Init scripts adding support for other arguments
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2008-11-27 20:12:07 UTC
Size:
1.66 KB
patch
obsolete
>Pouze v /usr/local/portage/net-misc/ptrtd/files: ptrtd >diff -u /usr/portage/net-misc/ptrtd/files/ptrtd.confd /usr/local/portage/net-misc/ptrtd/files/ptrtd.confd >--- /usr/portage/net-misc/ptrtd/files/ptrtd.confd 2004-07-15 02:37:03.000000000 +0200 >+++ /usr/local/portage/net-misc/ptrtd/files/ptrtd.confd 2008-11-27 18:55:50.000000000 +0100 >@@ -7,6 +7,15 @@ > # > # Peter Johanson <latexer@gentoo.org> > >+# tun or tap (default). If used INTERFACE must be defined too, >+#DRIVER='tun' >+ >+# Interface name (default is first unused tap0, tap1 etc.) >+#INTERFACE='tun1' >+ > # IPV6_PREFIX should be an IPv6 prefix, usually of length 64 >-# > #IPV6_PREFIX="3ffe:abcd:1234:9876::" >+ >+# Length of IPv6 prefix (default 64) >+#PREFIX_LEN='96' >+ >diff -u /usr/portage/net-misc/ptrtd/files/ptrtd.initd /usr/local/portage/net-misc/ptrtd/files/ptrtd.initd >--- /usr/portage/net-misc/ptrtd/files/ptrtd.initd 2004-07-15 02:37:03.000000000 +0200 >+++ /usr/local/portage/net-misc/ptrtd/files/ptrtd.initd 2008-11-27 18:49:50.000000000 +0100 >@@ -12,21 +12,29 @@ > } > > checkconfig() { >- if [ -z ${IPV6_PREFIX} ] >- then >+ if [ -z ${IPV6_PREFIX} ]; then > eerror "You must define IPV6_PREFIX in /etc/conf.d/ptrtd" > return 1 >- else >- return 0 > fi >+ >+ if [[ -n ${DRIVER} && -z ${INTERFACE} ]]; then >+ eerror "You must define INTERFACE along with DRIVER in" \ >+ "/etc/conf.d/ptrtd" >+ return 1 >+ fi >+ >+ return 0 > } >+ > start() { > > checkconfig || return 1 > > ebegin "Starting ptrtd" > start-stop-daemon --start --quiet --exec /usr/sbin/ptrtd \ >- -- -p ${IPV6_PREFIX} &> /dev/null >+ -- ${INTERFACE:+-i} "$DRIVER"${DRIVER:+:}"$INTERFACE" \ >+ -p ${IPV6_PREFIX} \ >+ ${PREFIX_LEN:+-l} "${PREFIX_LEN}" &> /dev/null > 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 249112
: 173608