Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/conf Fix borkeage



details:   https://anonhg.NetBSD.org/src/rev/9f72e68d06c0
branches:  trunk
changeset: 749055:9f72e68d06c0
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sun Nov 15 18:41:08 2009 +0000

description:
Fix borkeage

diffstat:

 sys/conf/osrelease.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 8658d9d51ec6 -r 9f72e68d06c0 sys/conf/osrelease.sh
--- a/sys/conf/osrelease.sh     Sun Nov 15 18:27:40 2009 +0000
+++ b/sys/conf/osrelease.sh     Sun Nov 15 18:41:08 2009 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $NetBSD: osrelease.sh,v 1.119 2009/11/15 14:40:18 dsl Exp $
+#      $NetBSD: osrelease.sh,v 1.120 2009/11/15 18:41:08 dsl Exp $
 #
 # Copyright (c) 1997 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -32,7 +32,8 @@
 
 # We use the number specified in <sys/param.h>
 
-path="./$0"
+path="$0"
+[ "${path#/*}" = "$path" ] && path="./$path"
 exec < ${path%/*}/../sys/param.h
 
 # Search for line



Home | Main Index | Thread Index | Old Index