View previous topic :: View next topic |
Author |
Message |
kompressor Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_morbo.gif)
Joined: 17 Apr 2003 Posts: 127 Location: Randolph, VT
|
Posted: Thu Dec 15, 2005 9:56 pm Post subject: /etc/init.d/net.eth0 restart multiple syntax errors [SOLVED] |
|
|
Code: | # /etc/init.d/net.eth0 restart
/lib/rcscripts/sh/rc-daemon.sh: line 328: syntax error near unexpected token `('
/lib/rcscripts/sh/rc-daemon.sh: line 328: ` local -a RC_DAEMONS=() RC_PIDFILES=()'
./net.eth0: line 286: syntax error near unexpected token `('
./net.eth0: line 286: ` local -a provide=() provide_list=() after=() dead=() sorted=() sortedp=()'
*ERROR: "./net.eth0" has syntax errors in it; aborting... |
This machine has an uptime of 10 days, All Ive done to it is update the world every week. I dont understand how this could just happen.
Any Ideas?
EDIT:
i noticed that net.eth0 is a symbolic link to net.lo
Strange, i thought they were separate files. Did it change?
Last edited by kompressor on Fri Dec 16, 2005 12:43 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dgaffuri Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Thu Dec 15, 2005 10:15 pm Post subject: Re: /etc/init.d/net.eth0 restart multiple syntax errors |
|
|
kompressor wrote: | i noticed that net.eth0 is a symbolic link to net.lo Strange, i thought they were separate files. Did it change? |
No, it's correct, the script is the same. I suppose that there's something wrong in conf files. Are you sure that after updating you've updated /etc files too with etc-update or dispatch-conf?
[edit]you're not the only one, https://forums.gentoo.org/viewtopic-t-413078-highlight-.html[/edit] _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kompressor Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_morbo.gif)
Joined: 17 Apr 2003 Posts: 127 Location: Randolph, VT
|
Posted: Thu Dec 15, 2005 10:25 pm Post subject: |
|
|
yes, Im pretty sure I was updating config files in /etc/
It is a possibility that I did not.
Im going to sync and remerge.
where would net.lo come from, portage? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Thu Dec 15, 2005 10:28 pm Post subject: Re: /etc/init.d/net.eth0 restart multiple syntax errors |
|
|
kompressor wrote: | Code: | # /etc/init.d/net.eth0 restart
/lib/rcscripts/sh/rc-daemon.sh: line 328: syntax error near unexpected token `('
/lib/rcscripts/sh/rc-daemon.sh: line 328: ` local -a RC_DAEMONS=() RC_PIDFILES=()'
./net.eth0: line 286: syntax error near unexpected token `('
./net.eth0: line 286: ` local -a provide=() provide_list=() after=() dead=() sorted=() sortedp=()'
*ERROR: "./net.eth0" has syntax errors in it; aborting... |
This machine has an uptime of 10 days, All Ive done to it is update the world every week. I dont understand how this could just happen.
Any Ideas? |
Yes - you've managed to emerge bash-3.1 which is both unstable (~ARCH) and packacge.masked!
Guess what - it's package.masked for a reason, and that reason is that it does not work with baselayout.
Not that baselayout is wrong, it's bash behaving badly like most new bash versions do of late :/
For a working system you have to use bash-3.0 until it comes out of a package.mask really.
Quote: | EDIT:
i noticed that net.eth0 is a symbolic link to net.lo
Strange, i thought they were separate files. Did it change? |
Dude, where have you been? They've been split for over a year now! _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kompressor Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_morbo.gif)
Joined: 17 Apr 2003 Posts: 127 Location: Randolph, VT
|
Posted: Thu Dec 15, 2005 10:54 pm Post subject: |
|
|
yep, i sure do. thats weird. the latest version available says 3.0-r14.
my /etc/portage/package.unmask file is empty.
Looks like I'll emerge the 3.0 one.
as for the symbolic link, I dont really poke around there unless it breaks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kompressor Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_morbo.gif)
Joined: 17 Apr 2003 Posts: 127 Location: Randolph, VT
|
Posted: Thu Dec 15, 2005 11:38 pm Post subject: |
|
|
that fixed it.
emerge sync && emerge bash
Thanks for the help!
Theres no way I would have know it was bash. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|