Hi,

This issue is affecting Alpine Linux too. From the setup script we will
start network in the background while user creates the root password.
However, udhcpc will not print information on the screen about the
lease which will overwrite the "Enter root password" prompt.

I tried to redirect output to /dev/null, but this does not work since
the information is printed to stderr.

If we redirect stderr we will not be able to display any real error
messages.

I think we will have to patch busybox for Alpine to fix this, but it
would be nice to not need maintain a fork. Are there any suggestions
how to fix this?

-nc


On Sat, 25 Jun 2016 06:48:14 +1000
"Michael D. Setzer II" <[email protected]> wrote:

> I did a comparison between the dhcpc.c of 1.25.0 and 1.24.2 and found 91 
> lines that are different. 
> 
> Most of the lines are changes for bb_info_msg to bb_error_msg that would 
> account for the output going to stderr instead of stdout??
> 
> The other lines are the message are seem to be changed to all lower case. 
> Previous version had the first letter in caps??
> 
> There are other changes that seem to be the ones documented, but not clear 
> on why the changes from bb_info_msg to bb_error_msg, or changing the text 
> of messages. 
> 
> Also, don't know if this is just with this program, or if it has been done 
> with all 
> busybox programs?
> 
> Thanks.
> 
> 
> On 24 Jun 2016 at 20:55, Michael D. Setzer II wrote:
> 
> From:                 "Michael D. Setzer II" <[email protected]>
> To:                   [email protected]
> Date sent:            Fri, 24 Jun 2016 20:55:06 +1000
> Subject:              udhcpc changes in 1.25.0 that didn't seem to be 
> mentioned?
> Priority:             normal
> 
> > Downloaded and built the new busybox 1.25.0, and had a script that was no 
> > longer working? 
> > 
> > The original line was
> >  IP_ADDRESS=`udhcpc -n -t 8 -T 5 -i $FOUND_IF -s /udhcpc.sh | grep   
> > Lease | cut -d\  -f3`
> > 
> > But that no longer worked for two reasons? Seems the output is going to 
> > stderr instead of stdout? Second the case of Lease has changed to lease?
> > 
> > This is how I changed the lines in this little script that uses it or a 
> > version in 
> > several places. 
> > 
> >  IP_ADDRESS=`udhcpc -n -t 8 -T 5 -i $FOUND_IF -s /udhcpc.sh 2>&1 | grep 
> > -i  Lease | cut -d\  -f3`
> > 
> > This script is only 91 lines in length, but my larger script has about 
> > 2000+ 
> > lines, and it also has 3 of this type of lines.
> > 
> > In past, don't recall having any issues in upgrade busybox to the newer 
> > version? 
> > 
> > The script did actually setup the IP address, but this variable is used to 
> > determine if it got an IP, and displays an error message since it came up 
> > as 
> > blank without the modification.
> > 
> > Thanks.
> > 
> > +----------------------------------------------------------+
> >   Michael D. Setzer II -  Computer Science Instructor      
> >   Guam Community College  Computer Center                  
> >   mailto:[email protected]                            
> >   mailto:[email protected]
> >   Guam - Where America's Day Begins                        
> >   G4L Disk Imaging Project maintainer 
> >   http://sourceforge.net/projects/g4l/
> > +----------------------------------------------------------+
> > 
> > http://setiathome.berkeley.edu (Original)
> > Number of Seti Units Returned:  19,471
> > Processing time:  32 years, 290 days, 12 hours, 58 minutes
> > (Total Hours: 287,489)
> > 
> > BOINC@HOME CREDITS
> > ABC         16613838.513356   |   EINSTEIN    
> > 101632185.95569545014114.055355
> > ROSETTA     45014114.055355   |   SETI        84572139.973936
> > 
> > _______________________________________________
> > busybox mailing list
> > [email protected]
> > http://lists.busybox.net/mailman/listinfo/busybox  
> 
> 
> +----------------------------------------------------------+
>   Michael D. Setzer II -  Computer Science Instructor      
>   Guam Community College  Computer Center                  
>   mailto:[email protected]                            
>   mailto:[email protected]
>   Guam - Where America's Day Begins                        
>   G4L Disk Imaging Project maintainer 
>   http://sourceforge.net/projects/g4l/
> +----------------------------------------------------------+
> 
> http://setiathome.berkeley.edu (Original)
> Number of Seti Units Returned:  19,471
> Processing time:  32 years, 290 days, 12 hours, 58 minutes
> (Total Hours: 287,489)
> 
> BOINC@HOME CREDITS
> ABC         16613838.513356   |   EINSTEIN    
> 102570568.45569545339942.544286
> ROSETTA     45339942.544286   |   SETI        85273027.442117
> 
> _______________________________________________
> busybox mailing list
> [email protected]
> http://lists.busybox.net/mailman/listinfo/busybox

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to