Subject: Re: #ifdef __i386 in usr.bin/eject
To: None <current-users@NetBSD.ORG>
From: Boris Nikolaus <boris@cs.tu-berlin.de>
List: current-users
Date: 10/25/1995 12:43:54
> [ On Wed, October 25, 1995 at 14:01:57 (+1000), matthew green wrote: ]
> > Subject: Re: #ifdef __i386 in usr.bin/eject
> >
> > i like how "eject" (no args) works under sunos. i really wish
> > that it would under netbsd, also. it just ejects the cdrom or
> > floppy (or both? don't know)...
>
> On my Sun 3/260 with SunOS-4.1.1_U1:
>
> ttyp1:<woods@most> # eject -d
> eject: default device is "/dev/rfd0c"
> ttyp1:<woods@most> # eject -n
> eject: nicknames are:
> fd -> /dev/rfd0c
> fd0 -> /dev/rfd0c
> floppy -> /dev/rfd0c
> [...]
>
> and the manual page says:
>
> BUGS
> There should be a way to change the default on a per-user
> basis.
>
> It appears the nickname table is hard coded in the SunOS implementation....
How about a file /etc/default/eject, similar to /etc/default/tar? This
wouldn't support per-user defaults for eject, but it's better than
hard coded nicknames.
Wed Oct 25 12:41:06 MET 1995, boris