Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 186312 Details for
Bug 263848
2008.0-r1 autoconfig doesn't recognize passwd= parameter in cmdline
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to let autoconfig understand passwd= parameter in cmdline correctly
autoconfig.patch (text/plain), 666 bytes, created by
Qiangning Hong
on 2009-03-26 10:09:04 UTC
(
hide
)
Description:
patch to let autoconfig understand passwd= parameter in cmdline correctly
Filename:
MIME Type:
Creator:
Qiangning Hong
Created:
2009-03-26 10:09:04 UTC
Size:
666 bytes
patch
obsolete
>--- autoconfig.orig 2008-06-12 22:16:00.000000000 +0800 >+++ autoconfig 2009-03-26 17:53:17.000000000 +0800 >@@ -29,6 +29,26 @@ > USB="yes" > X11="yes" > >+strlen() { >+ if [ -z "$1" ] >+ then >+ echo "usage: strlen <variable_name>" >+ die >+ fi >+ eval echo "\${#${1}}" >+} >+ >+parse_opt() { >+ case "$1" in >+ *\=*) >+ local key_name="`echo "$1" | cut -f1 -d=`" >+ local key_len=`strlen key_name` >+ local value_start=$((key_len+2)) >+ echo "$1" | cut -c ${value_start}- >+ ;; >+ esac >+} >+ > get_config() { > CMDLINE="$(cat /proc/cmdline)" > >@@ -184,7 +204,7 @@ > ;; > passwd=*) > PASSWD="no" >- PASSWORD="$*" >+ PASSWORD=`parse_opt "${x}"` > ;; > esac > done
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 263848
: 186312