#!/bin/ksh -p
# $Id: //depot/stable/explorer/tools/etc#3 $
#
# Explorer Version:
EXP_VERSION=4.0
#

# Source tools functions
. ${EXP_LIB}/exp_tools

# Run if specified to do so
script=${0##*/}
which_gate_exit $script default all

get_dir  recursive /etc/opt/SUNWexplo              etc/opt/SUNWexplo/
get_dir  /etc/default              etc/default/
get_file "/etc/TIMEZONE"           etc/
get_file "/etc/auto_master"        etc/
get_file "/etc/hosts"              etc/
get_file "/etc/inetd.conf"         etc/
get_file "/etc/defaultdomain"      etc/
get_file "/etc/defaultrouter"      etc/
get_file "/etc/dfs/sharetab"       etc/
get_file "/etc/dfs/dfstab"         etc/
get_file "/etc/dumpadm.conf"       etc/
get_file "/etc/dumpdates"          etc/
get_file "/etc/ethers"             etc/
get_file "/etc/fcswitch.conf"      etc/
get_file "/etc/mnttab"             etc/
get_file "/etc/name_to_major"      etc/
get_file "/etc/nscd.conf"          etc/
get_file "/etc/nsswitch.conf"      etc/
get_file "/etc/pam.conf"           etc/
get_file "/etc/path_to_inst"       etc/
get_file "/etc/rpc"                etc/
get_file "/etc/release"            etc/
get_file "/etc/resolv.conf"        etc/
get_file "/etc/services"           etc/
get_file "/etc/system"             etc/
get_file "/etc/ssphostname"        etc/
get_file "/etc/vfstab"             etc/
get_file "/etc/nodename"           etc/
get_file "/etc/notrouter"          etc/
get_file "/etc/inittab"            etc/
get_file "/etc/syslog.conf"        etc/
get_file "/etc/bootparams"         etc/
get_file "/etc/shell"              etc/
get_file "/etc/init.d/sysetup"     etc/init.d/
get_file "/etc/power.conf"         etc/
get_file "/etc/rmmount.conf"       etc/
get_file "/etc/hostname.*"         etc/
get_file "/etc/hostname6.*"        etc/
get_file "/etc/inet/netmasks"      etc/inet/
get_file "/etc/inet/networks"      etc/inet/
get_file "/etc/inet/ndpd.conf"     etc/inet/
get_file "/etc/inet/ipnodes"       etc/inet/
get_file "/etc/inet/ntp.conf"	   etc/inet/
get_file "/etc/inet/ntp.client"    etc/inet/
get_file "/etc/inet/ntp.server"    etc/inet/
get_file "/var/inet/ndpd_state.*"  var/inet/

# Collect login environment
ROOTDIR=`awk -F':' ' ($1=="root") { print $6 } ' /etc/passwd`
get_file "/etc/profile"          etc/shells/etc_profile!
get_file "${ROOTDIR}/.dtprofile" etc/shells/dtprofile!
get_file "${ROOTDIR}/.profile"   etc/shells/profile!
get_file "${ROOTDIR}/.kshrc"     etc/shells/kshrc!
get_file "${ROOTDIR}/.cshrc"     etc/shells/cshrc!
get_file "${ROOTDIR}/.login"     etc/shells/login!
get_file "${ROOTDIR}/.logout"    etc/shells/logout!
