> > exec /bin/ksh -o vi
> 
> As we alrerady have discussed before, this is a
> really bad idea
> as it may make a system unusable if /usr could not be
> mounted.

Technically speaking: yes, agreed.

However, nowdays there is no need to carve up the disk into separate 
FileSystems; it's not an efficient disk space utilization method.

There is one special case where carving up / and /usr is a must, and that is on 
systems with BootPROM 2.x, which can't take a root FS greater than 1GB.

But back to the problem at hand.  What I would do is as follows:

(.profile)
Shell="/bin/tcsh"
if [ -x $Shell ]
then
   exec "$Shell"
fi

If the desired shell isn't present (i.e. sits on /usr and /usr isn't mounted), 
it won't get exec'd, and you don't get kicked out. However, if it's there, it's 
business as usual. Otherwise, you fall back on the system's default. Nice and 
clean.
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to