I have one question that is also an intrigue I have about one matter. How can a tar file like in the extract bellow be integrated into a text file for later untar and installation?
BR,
Joaquin
I have seen that if I do a more into one file I get this:
[Wookie:~] adn% more server_420033-06_R3A_R6A_1_19007_40_CRH109194_2.F.SunOS5.8.sh
#!/bin/sh
# Wrapper to create a LOADMODULE (190 07) # # ! ! ! D O N O T E D I T T H I S F I L E ! ! !
# implements Installable (TBD) #
# String help()
#
help()
{
echo "Usage: $0 <help | install | uninstall | version | info >"
echo "help - Prints this page"
echo "install - Installs this loadmodule"
echo "uninstall - Removes this loadmodule"
echo "version - The version"
echo "info - README information"
echo ""
exit 1
}#
# extracts the payload of the given file to a given directory
#
extract()
{
loadmodule="${1}"
unpack_dir="${2}"
shift 2# make absolute path name
echo "${loadmodule}" | egrep '^/' > /dev/null || loadmodule=`pwd`"/${loadmodule}"
( mkdir $unpack_dir ; cd "${unpack_dir}" ; uudecode -p "${loadmodule}" | tar xof - "$@" )
return ${?}
}#
#
#
info()
{
tmp_dir="/tmp/"`basename "${0}"`".${$}"
extract "${0}" "${tmp_dir}" "_readme" || exit 1
[ -r "${tmp_dir}/_readme" ] && more "${tmp_dir}/_readme"
rm -rf "${tmp_dir}"
}# String version()
#
version()
{
echo "R3A_R6A_1_19007_40_CRH109194_2.F"
}# int install()
#
install()
{
tmp_dir="/tmp/"`basename "${0}"`".${$}"
extract "${0}" "${tmp_dir}" || exit 1
echo "Installing $loadmodule..."
( cd "${tmp_dir}" ; ./_install "${tmp_dir}" )
rm -rf "${tmp_dir}"
echo "Done."
}# int uninstall()
#
uninstall()
{
tmp_dir="/tmp/"`basename "${0}"`".${$}"
extract "${0}" "${tmp_dir}" || exit 1
echo "Uninstalling $loadmodule..."
( cd "${tmp_dir}" ; ./_uninstall "${tmp_dir}" )
rm -rf "${tmp_dir}"
echo "Done."
}# # main # case $1 in
'help') help ;;
'info') info ;;
'version') version ;;
'install') install ;;
'uninstall') uninstall ;;
*) help ;;
esac exit 0
# packages/tarfiles follows.
begin 644 container.tar M-#(P,#,S+3 V M M # P-# W-34 ,# P-S4P-0 P,# R,#0T # P,# P,# P,#,V M # W-S0Q-C$T,C<P # P,38Q,38 6 M M !U<W1A<@ P,&QM8VIF M8F, <')J<VX M P,# P,# P # P,# P,#( +W1M<"]087A(96%D97)S M+C,S-SD M
etc ...................
_______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users
