home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
jale
/
install
/
postinstall
< prev
next >
Wrap
Text File
|
1998-08-19
|
4KB
|
135 lines
#ident "@(#)postinstall 1.2"
# copyright "%c%"
#
# Japanese Language Extension postinstall
#
LOCALE=ja
>/tmp/$PKGINST.ReMoVe
>/tmp/$PKGINST.InStAlL
#
# lp installation
#
USRSBIN=/usr/sbin
LPFILTER=${USRSBIN}/lpfilter
FDTMP=/etc/inst/locale/${LOCALE}/lp
if [ -x ${LPFILTER} ]
then
if ls ${FDTMP}/*.fd > /tmp/FDLIST 2>/dev/null
then
while read fd
do
filter=`expr "${fd}" : '.*/\([^/]*\)\.fd$'`
${LPFILTER} -f ${filter} -F ${fd} 2> /dev/null
done < /tmp/FDLIST
cat /tmp/FDLIST >>/tmp/$PKGINST.ReMoVe
rm -f ${FDTMP}/*.fd
mv /tmp/FDLIST ${FDTMP}/FDLIST.ja
echo ${FDTMP}/FDLIST.ja >>/tmp/$PKGINST.InStAlL
fi
fi
#
# remove postprint filter so that text2ps filter is used instead.
# postprint will be restored in preremove
#
${LPFILTER} -f postprint -x 2>/dev/null
#
# Find out if scoadmin have been already installed. Install of
# scoadmin related pieces is slightly different in this case.
#
SCOADMIN=NO
/usr/bin/pkginfo -i scoadmin >/dev/null 2>&1 && SCOADMIN=YES
#
# Install printer depended model file
#
JMODEL=/usr/lib/scoadmin/printer/model.stz.${LOCALE}
MODEL=/usr/lib/scoadmin/printer/model.stz
[ "${SCOADMIN}" = "YES" ] && {
grep "^japan" $MODEL >/dev/null 2>&1 || \
echo "\n" | cat - ${JMODEL} >>${MODEL}
}
# install scoadmin title files
if [ -f /usr/bin/scoadmin ]
then
SCOADBIN=/usr/bin/scoadmin
SCOADDIR=/usr/lib/scoadmin
SCOTMP=/usr/lib/scoadmin/InStAlL
$SCOADBIN -f -i $SCOADDIR/account/account.obj
$SCOADBIN -f -i $SCOADDIR/admsetup/admsetup.obj
$SCOADBIN -f -i $SCOADDIR/filesystem/filesystem.obj
$SCOADBIN -f -i $SCOADDIR/filesystem/filesystem.obj
$SCOADBIN -f -i $SCOADDIR/license/license.obj
$SCOADBIN -f -i $SCOADDIR/printer/printer.obj
$SCOADBIN -f -i $SCOADDIR/printjob/printjob.obj
$SCOADBIN -f -i $SCOADDIR/process/process.obj
$SCOADBIN -f -i $SCOADDIR/tasksched/tasksched.obj
$SCOADBIN -f -i $SCOADDIR/template/app.obj
$SCOADBIN -f -i /etc/mail/admin/mail.obj
$SCOADBIN -f -i /etc/mail/admin/mhome.obj
$SCOADBIN -H /usr/lib/netcfg/wansw -f -i $SCOADDIR/pic/pic.obj
$SCOADBIN -H /usr/lib/netcfg/wansw -f -i $SCOADDIR/ppp/ppp.obj
$SCOADBIN -p "Software_Management" -f -i $SCOADDIR/appinst/appinst.obj
$SCOADBIN -p Hardware -f -i $SCOADDIR/dcu/dcu.obj
$SCOADBIN -p Hardware -f -i $SCOADDIR/modem/modem.obj
$SCOADBIN -p Hardware -f -i $SCOADDIR/serial/serial.obj
$SCOADBIN -p Hardware -f -i /usr/lib/audio/audioconfig/audioconfig.obj
$SCOADBIN -p Hardware -f -i /usr/X/lib/vidconf/vidconfGUI.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/aas/aas.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/dhcp/dhcp.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/dns/dns.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/ftp/ftp.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/incoming/incoming.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/ldap/ldap.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/ncm/ncm.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/netmgmt/netmgmt.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/outgoing/outgoing.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/pf/pf.obj
$SCOADBIN -p Networking -f -i $SCOADDIR/snmpmgr/snmpmgr.obj
$SCOADBIN -p Networking -f -i /usr/lib/netcfg/netcfg.obj
$SCOADBIN -p System -f -i $SCOADDIR/defaults/defaults.obj
$SCOADBIN -p System -f -i $SCOADDIR/i18n/i18n.obj
$SCOADBIN -p System -f -i $SCOADDIR/reports/reports.obj
$SCOADBIN -p System -f -i $SCOADDIR/security/security.obj
$SCOADBIN -p System -f -i $SCOADDIR/shutdown/shutdown.obj
$SCOADBIN -p System -f -i $SCOADDIR/sysmonitor/sysmonitor.obj
$SCOADBIN -p System -f -i $SCOADDIR/sysstat/sysstat.obj
$SCOADBIN -p System -f -i $SCOADDIR/systemlogs/systemlogs.obj
$SCOADBIN -p System -f -i $SCOADDIR/systuner/systuner.obj
$SCOADBIN -p System -f -i $SCOADDIR/time/time.obj
# installing scoadmin folder title files
$SCOADBIN -p Hardware -n $SCOTMP/Hardware/title.${LOCALE}
$SCOADBIN -p Networking -n $SCOTMP/Networking/title.${LOCALE}
$SCOADBIN -p Software_Management -n $SCOTMP/Software_Management/title.${LOCALE}
$SCOADBIN -p System -n $SCOTMP/System/title.${LOCALE}
fi
ls ${SCOTMP}/* >> /tmp/$PKGINST.ReMoVe
cat /tmp/$PKGINST.ReMoVe | removef $PKGINST - 2>/dev/null
[ -s /tmp/$PKGINST.ReMoVe ] && rm -rf `cat /tmp/$PKGINST.ReMoVe`
rm /tmp/$PKGINST.ReMoVe
removef -f $PKGINST
cat /tmp/$PKGINST.InStAlL | installf $PKGINST - 2>/dev/null
rm /tmp/$PKGINST.InStAlL
installf -f $PKGINST
exit 20 # System should be rebooted