I get the following syntax error on reboot: /sbin/rc: line 76: ((: i -lt 0: syntax error in expression (error token is "0")
ok, not much useful information though, but here we go. i suppose the error is in /etc/init.d/net.eth0. 34 hours ago agriffis changed it with the following commit message: > In net.eth0, fix many instances of loops like "for ((i = 0; i < 100; i > = i + 1))". The problem here is that the middle comparison is being > interpreted as a bash conditional, which means that it's doing string > comparison by default. It needs to be "i -lt 100" The manpage of bash says that for the for loop all three arguments are arithmetic expressions and are evaluated according to the rules of arithmetic evaluation. comparison in artihmetic expressions is done by < and > according to artimethic evaluation. so the former version using <= instead of -lt is the correct one. for verification: sven@morpheus sven $ for ((i = 0; i < 100; i = i + 1)); do echo $i; done 0 1 2 [...] 98 99 sven@morpheus sven $ for ((i = 0; i -lt 100; i = i + 1)); do echo $i; done -bash: ((: i -lt 100: syntax error in expression (error token is "100")
Sorry about the lack of information... The error does pop up right before bringing up eth0.
Created attachment 30994 [details, diff] net.eth0.patch patch between cvs revisions of net.eth0 to revert the changes
Thanks Sven, my mistake. I'll get this fix in
*** Bug 50459 has been marked as a duplicate of this bug. ***
It's in rc-scripts cvs. I will make a new baselayout 1.9.1 release today
baselayout-1.9.1 is in portage and baselayout-1.9.0 is removed. Thanks again!
*** Bug 50644 has been marked as a duplicate of this bug. ***
*** Bug 50667 has been marked as a duplicate of this bug. ***
*** Bug 50673 has been marked as a duplicate of this bug. ***