File=table Product=login group: Flavor=ANY Qualifiers="" common: # # also for backwards compatability, setup MACH_* variables to cache # funame output # ACTION = set_mach_vars EnvSetIfNotSet(MACH_ID, `funame -n`) EnvSetIfNotSet(MACH_TYPE, `funame -m`) EnvSetIfNotSet(MACH_OS, `ups flavor -1`) EnvSetIfNotSet(MACH_REL, `ups flavor | sed -e 's/.*+//'`) ACTION = unset_mach_vars # set misc environment variables -- # EMULATE for AIX telnet program (we could drop it after AIX is gone...) # TZ to set the timezone # PAGER for what file viewer to use (should be in a "less" product) # LOGNAME 'cause some fermi stuff needs it # ACTION=miscenv EnvSet(EMULATE, none) EnvSet(TZ,CST6CDT) EnvSet(PAGER, `/bin/sh -c '[ -x /usr/local/bin/less ]' && echo /usr/local/bin/less || echo more`) EnvSetIfNotSet(LOGNAME,${USER}) # tell the user about mail, news, and Info stuff # Action=info Execute(/bin/sh -c '/bin/mail -e >/dev/null 2>&1 && echo You have mail', NO_UPS_ENV) Execute(/bin/sh -c '[ -d /usr/news ] && [ -x /usr/bin/news ]' && /usr/bin/news, NO_UPS_ENV) Execute(Info -new, NO_UPS_ENV) ACTION=setup setupenv() ExeActionRequired(set_mach_vars) setupRequired(setpath) Execute(umask 022, NO_UPS_ENV) setupRequired(setterm) setupRequired(setxwin) setupRequired(Info) ExeActionRequired(miscenv) ExeActionRequired(info) SourceOptional(/usr/local/etc/local.login.${UPS_SHELL},NO_UPS_ENV) end: