Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 15355 Details for
Bug 25742
configure wireless options in /etc/conf.d/net
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch net.eth0 in /etc/init.d
patch-net.eth0 (text/plain), 2.16 KB, created by
Benoit Chesneau
on 2003-08-01 21:14:33 UTC
(
hide
)
Description:
Patch net.eth0 in /etc/init.d
Filename:
MIME Type:
Creator:
Benoit Chesneau
Created:
2003-08-01 21:14:33 UTC
Size:
2.16 KB
patch
obsolete
>--- net.eth0-orig 2003-08-02 05:52:06.000000000 +0200 >+++ net.eth0 2003-08-02 05:55:55.000000000 +0200 >@@ -24,8 +24,73 @@ > checkconfig || return 1 > local iface_args="$(eval echo \$\{iface_${IFACE}\})" > local dhcp_args="$(eval echo \$\{dhcpcd_${IFACE}\})" >+ local iwessid_args="$(eval echo \$\{iwessid_${IFACE}\})" >+ local iwkey_args="$(eval echo \$\{iwkey_${IFACE}\})" >+ local iwmode_args="$(eval echo \$\{iwmode_${IFACE}\})" >+ local iwfreq_args="$(eval echo \$\{iwfreq_${IFACE}\})" >+ local iwchannel_args="$(eval echo \$\{iwchannel_${IFACE}\})" >+ local iwrate_args="$(eval echo \$\{iwrate_${IFACE}\})" > local retval=0 > ebegin "Bringing ${IFACE} up" >+ >+ >+ # set wireless options >+ if [ -n "$(eval echo \$\{iwfreq_${IFACE}\})" ] >+ then >+ /usr/sbin/iwconfig ${IFACE} freq ${iwfreq_args} > /dev/null || { >+ retval=$? >+ eend ${retval} "Failed to bring ${IFACE} up" >+ return ${retval} >+ } >+ fi >+ >+ if [ -n "$(eval echo \$\{iwchannel_${IFACE}\})" ] >+ then >+ /usr/sbin/iwconfig ${IFACE} channel ${iwchannel_args} > /dev/null || { >+ retval=$? >+ eend ${retval} "Failed to bring ${IFACE} up" >+ return ${retval} >+ } >+ fi >+ >+ if [ -n "$(eval echo \$\{iwmode_${IFACE}\})" ] >+ then >+ /usr/sbin/iwconfig ${IFACE} mode ${iwmode_args} > /dev/null || { >+ retval=$? >+ eend ${retval} "Failed to bring ${IFACE} up" >+ return ${retval} >+ } >+ fi >+ >+ if [ -n "$(eval echo \$\{iwrate_${IFACE}\})" ] >+ then >+ /usr/sbin/iwconfig ${IFACE} rate ${iwrate_args} > /dev/null || { >+ retval=$? >+ eend ${retval} "Failed to bring ${IFACE} up" >+ return ${retval} >+ } >+ fi >+ >+ if [ -n "$(eval echo \$\{iwessid_${IFACE}\})" ] >+ then >+ /usr/sbin/iwconfig ${IFACE} essid ${iwessid_args} > /dev/null || { >+ retval=$? >+ eend ${retval} "Failed to bring ${IFACE} up" >+ return ${retval} >+ } >+ fi >+ >+ >+ if [ -n "$(eval echo \$\{iwkey_${IFACE}\})" ] >+ then >+ /usr/sbin/iwconfig ${IFACE} key ${iwkey_args} > /dev/null || { >+ retval=$? >+ eend ${retval} "Failed to bring ${IFACE} up" >+ return ${retval} >+ } >+ fi >+ >+ > if [ "$(eval echo \$\{iface_${IFACE}\})" != "dhcp" ] > then > /sbin/ifconfig ${IFACE} ${iface_args} >/dev/null || {
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 25742
: 15355 |
26324