If we are called as 'sh MAKEDEV ...', then we would previously have

tried to do '. MAKEDEV.subr'.  That doesn't work, we need to do
'. ./MAKEDEV.subr' in that case.
This commit is contained in:
apb 2007-03-01 20:48:26 +00:00
parent abaa11daf6
commit f21f1a9ef9
2 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/bin/sh -
# $NetBSD: MAKEDEV.local,v 1.9 2007/02/28 19:45:37 apb Exp $ # $NetBSD: MAKEDEV.local,v 1.10 2007/03/01 20:48:26 apb Exp $
# #
# Copyright (c) 2007 The NetBSD Foundation, Inc. # Copyright (c) 2007 The NetBSD Foundation, Inc.
# All rights reserved. # All rights reserved.
@ -79,7 +79,10 @@ done
# to parse command line args and set some other variables; then call # to parse command line args and set some other variables; then call
# makedev_local function to create requested devices. # makedev_local function to create requested devices.
# #
. "$0.subr" case "$0" in
*/*) . "${0%/*}/MAKEDEV.subr" ;;
*) . ./MAKEDEV.subr ;;
esac
setup ${1+"$@"} setup ${1+"$@"}
shift $((${OPTIND}-1)) shift $((${OPTIND}-1))
makedev_local ${1+"$@"} makedev_local ${1+"$@"}

View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/bin/sh -
# $NetBSD: MAKEDEV.tmpl,v 1.75 2007/02/28 19:45:37 apb Exp $ # $NetBSD: MAKEDEV.tmpl,v 1.76 2007/03/01 20:48:26 apb Exp $
# #
# Copyright (c) 2003,2007 The NetBSD Foundation, Inc. # Copyright (c) 2003,2007 The NetBSD Foundation, Inc.
# All rights reserved. # All rights reserved.
@ -1618,7 +1618,10 @@ makedisk_minimal()
# to parse command line args and set some other variables; then call # to parse command line args and set some other variables; then call
# makedev function to create requested devices. # makedev function to create requested devices.
# #
. "$0.subr" case "$0" in
*/*) . "${0%/*}/MAKEDEV.subr" ;;
*) . ./MAKEDEV.subr ;;
esac
setup ${1+"$@"} setup ${1+"$@"}
shift $((${OPTIND}-1)) shift $((${OPTIND}-1))
makedev ${1+"$@"} makedev ${1+"$@"}