http://bugzilla.novell.com/show_bug.cgi?id=587428 http://bugzilla.novell.com/show_bug.cgi?id=587428#c0 Summary: syntax error in /etc/sysconfig/network/scripts/functions, scripting style of /etc/init.d/network Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: david.werner@iws.uni-stuttgart.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.5 (like Gecko) SUSE It appears to me that /etc/sysconfig/network/scripts/functions is not /bin/sh compatible. I'm not sure if it is /bin/bash but would doubt it too. This in opensuse 11.2 and also opensuse 11.1, I'm not sure how it is in opensuse 11.3. /etc/sysconfig/network/scripts/functions gets sourced by /etc/init.d/network. To reproduce it. Type just type /bin/sh shell_prompt$ . /etc/sysconfig/network/scripts/functions One gets: sh: /etc/sysconfig/network/scripts/functions: line 297: syntax error near unexpected token `<' sh: /etc/sysconfig/network/scripts/functions: line 297: ` done < <(LC_ALL=POSIX ip -4 address list "$1" 2>/dev/null)' I would say a shell-construct like while .. do < <(command) is not allowded. better use command | while ... I think that most of network-script is working is that these functions are not used in many cases. /bin/sh seems to immediately evaluate syntax while /bin/bash it seems not when a file gets sourced. A pool of computers did not start network due to this error. Then patched to the current level it started again, but the error is of nature that i can happen again. Please rethink also programming-style of /etc/init.d/network Code around line 49: if ! . scripts/functions 2>/dev/null; then echo -n "Network: file /etc/sysconfig/network/scripts/functions is missing." rc_failed rc_status -v rc_exit fi I my case scripts/functions was present, but had a syntactical error but shell-output of that error was redirected to /dev/null. The resulting message "Network: file /etc/sysconfig/network/scripts/functions is missing." was not true and misleading. Reproducible: Always Steps to Reproduce: 1. Type just type /bin/sh shell_prompt$ . /etc/sysconfig/network/scripts/functions 2. 3. Actual Results: Currently system seems to work. But it can happen again that starting of network fails. Network initialization fails easely. Depending only how /bin/sh and /bin/bash evaluate functions from sourced files. Quite bad programming style in some place in /etc/init.d/network makes life hard to find or give a detailed report of bug. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.