Module Name: src Committed By: christos Date: Sun Jun 6 12:37:57 UTC 2010
Modified Files: src/etc: rc.subr Log Message: fix conditional, from dholland. To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/etc/rc.subr Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/rc.subr diff -u src/etc/rc.subr:1.82 src/etc/rc.subr:1.83 --- src/etc/rc.subr:1.82 Fri Jun 4 14:42:54 2010 +++ src/etc/rc.subr Sun Jun 6 08:37:57 2010 @@ -1,4 +1,4 @@ -# $NetBSD: rc.subr,v 1.82 2010/06/04 18:42:54 christos Exp $ +# $NetBSD: rc.subr,v 1.83 2010/06/06 12:37:57 christos Exp $ # # Copyright (c) 1997-2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -1181,10 +1181,10 @@ # human_exit_code() { - if [ $1 -lt 127 ] + if [ "$1" -lt 127 ] then echo "exited with code $1" - elif [ $1 -eq 127 ] + elif [ "$(expr $1 & 255)" -eq 127 ] then echo "stopped with signal $(expr $1 / 256)" else