Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc fix conditional, from dholland.
details: https://anonhg.NetBSD.org/src/rev/3720729ffadd
branches: trunk
changeset: 755450:3720729ffadd
user: christos <christos%NetBSD.org@localhost>
date: Sun Jun 06 12:37:57 2010 +0000
description:
fix conditional, from dholland.
diffstat:
etc/rc.subr | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 291ae6cfa719 -r 3720729ffadd etc/rc.subr
--- a/etc/rc.subr Sun Jun 06 12:13:35 2010 +0000
+++ b/etc/rc.subr Sun Jun 06 12:37:57 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index