Changing home directory

Hello All:

I have an LDAP server that is used for authentication. Now the home directory id set to : /export/home/user1 . But I am logging in to different machines Solaris, Linux. The problem is I want the home directory to change depending on the os version (e.g. /export/home/user1/linux). Can I do it in the .cshrc or .login ? I have gotten this far - Please help ...

set osv = `uname -a | awk '{ print $1 substr($3,1,1) }'`

switch( $osv )
case 'Linux2':
case 'SunOS5':

Anyone wants to take a shot at this ?