Subject: misc/2596: inconsistency between MAKEDEV.local and MAKEDEV
To: None <gnats-bugs@NetBSD.ORG>
From: Tatoku Ogaito <tacha@tera.fukui-med.ac.jp>
List: netbsd-bugs
Date: 07/02/1996 22:51:18
>Number:         2596
>Category:       misc
>Synopsis:       inconsistency between MAKEDEV.local and MAKEDEV
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul  2 10:05:01 1996
>Last-Modified:
>Originator:     Tatoku Ogaito
>Organization:
Tatoku Ogaito		| Email: tacha@tera.fukui-med.ac.jp
Department of Physics   | Fax:   +81 776-61-8141
Fukui Medical School  	| Tel:   +81 776-61-3111 ext 2446
>Release:        1.2_BETA
>Environment:
System: NetBSD tera.fukui-med.ac.jp 1.2_BETA NetBSD 1.2_BETA (TERA) #6: Thu Jun 27 15:37:48 JST 1996 root@tera.fukui-med.ac.jp:/usr/current/src/sys/arch/i386/compile/TERA i386


>Description:
	skeleton MAKEDEV.local needs arguments to create device,
but MAKEDEV call it with no arguments. So it may confuse some
newbie super users.

>How-To-Repeat:
Add some local device definition to MAKEDEV.local and
try MAKEDEV all.

>Fix:
I don't know which script should be changed, but
for example, following patch makes them consistent.

===================================================================
RCS file: MAKEDEV.local,v
retrieving revision 1.1
diff -c -r1.1 MAKEDEV.local
*** MAKEDEV.local	1996/07/02 13:34:45	1.1
--- MAKEDEV.local	1996/07/02 13:36:51
***************
*** 37,51 ****
  #
  
  # Local device MAKEDEV script.
  
  PATH=/sbin:/bin:/usr/bin
  umask 77
! for i
! do
! case $i in
! 
! *)
! 	echo 'MAKEDEV.local: no such device.'
  	;;
  esac
- done
--- 37,63 ----
  #
  
  # Local device MAKEDEV script.
+ # If invoked with no argument, try to make all known local devices.
+ #
  
  PATH=/sbin:/bin:/usr/bin
  umask 77
! case $# in
!     0)
! 	sh MAKEDEV.local all
  	;;
+     *)
+ 	for i
+ 	do
+ 	case $i in
+ 
+ 	all)
+ #	    sh MAKEDEV.local all_local_devices
+ 	    ;;
+ 
+ 	*)
+ 	    echo 'MAKEDEV.local: no such device.'
+ 	    ;;
+ 	esac
+ 	done
  esac
>Audit-Trail:
>Unformatted: