# cat /etc/init.d/local #!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo/src/catalyst/livecd/runscript/default-runscript.sh,v 1.1 2004/03/04 23:29:45 zhen Exp $ depend() { after * } start() { ebegin "Auto-scrambling root password for security" echo root: | chpasswd > /dev/null 2>&1 eend 127 "Failed to start local." } stop() { ebegin "Stopping local" eend 127 "Failed to stop local." } proposed patch: --- default-runscript.sh 2004-03-14 16:27:42.000000000 -0800 +++ default-runscript.new.sh 2004-03-19 20:12:25.394274865 -0800 @@ -188,13 +188,13 @@ start() { ebegin "Auto-scrambling root password for security" - echo root:`pwgen -s 16` | chpasswd > /dev/null 2>&1 - eend $? "Failed to start local." + echo root:\`pwgen -s 16\` | chpasswd > /dev/null 2>&1 + eend \$? "Failed to start local." } stop() { ebegin "Stopping local" - eend $? "Failed to stop local." + eend \$? "Failed to stop local." } EOF
fixed in cvs