Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 161616 Details for
Bug 230728
sys-kernel/genkernel: booting over NFS - missing route support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add support for default route and dns servers/domain
genkernel_udhcpc_script.patch (text/plain), 640 bytes, created by
Andrew Gaffney (RETIRED)
on 2008-07-29 12:32:09 UTC
(
hide
)
Description:
Add support for default route and dns servers/domain
Filename:
MIME Type:
Creator:
Andrew Gaffney (RETIRED)
Created:
2008-07-29 12:32:09 UTC
Size:
640 bytes
patch
obsolete
>diff --git a/defaults/udhcpc.scripts b/defaults/udhcpc.scripts >index a108a8b..1890f8a 100644 >--- a/defaults/udhcpc.scripts >+++ b/defaults/udhcpc.scripts >@@ -9,6 +9,21 @@ case ${1} in > #[ -n "$dns" ] && echo "$dns" > /dns > > busybox ifconfig $interface $ip $BROADCAST $NETMASK >+ if [ -n "${router}" ] >+ then >+ for i in ${router} >+ do >+ busybox route add default gw ${i} >+ done >+ fi >+ [ -n "$domain" ] && echo "domain ${domain}" >> /etc/resolv.conf >+ if [ -n "${dns}" ] >+ then >+ for i in ${dns} >+ do >+ echo "nameserver ${i}" >> /etc/resolv.conf >+ done >+ fi > ;; > deconfig) > busybox ifconfig $interface 0.0.0.0
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 230728
: 161616