Initscript installed with =sci-misc/boinc-6.4.5-r2 does contain many bashisms which cause it to not work correctly when /bin/sh is not bash as OpenRC's runscript runs init.d scripts with /bin/sh. Issue noticed with =app-shells/dash-0.5.5.1.2 and =sys-apps/openrc-9999.
Created attachment 198884 [details, diff] Patch to fix init.d script I've replaced all '[[' occurences with standard '['; broken down '-a' within '[' to two tests (it's an XSI extension); added quoting in many places to avoid problems with spaces (especially in filenames and all user-supplied values). I've also removed all 'pushd's and replaced them with standard 'cd'. I don't see any reason to use them as init.d scripts are called as a subshell and thus parent shell remains in the same dir. Moreover, one of those 'pushd's had no 'popd' (;.
Thanks for patch. Added to the cvs :]