Re: probleme de script d'installation sh sur mandrake 10
1 réponse
doure
voici le code original
sans les changements!
elif [ $1 = ? || $1 = h || $1 = help
texte complet cj-dessou
###############################################################
#!/bin/sh
#============================================================# MODIFICATION
#
# 06Oct97 $$1 JJE Created
# 28Oct97 $$2 JJE Use dir
# 05Dec97 $$3 JJE Remove vrdirs set LC_NUMERIC to
# 22Dec97 $$4 JJE Check DISPLA
# 05Jan98 $$5 JJE ignoreddd
# 13Jan98 $$6 JJE Use delta li
# 22Jan98 $$7 JJE Add · to path on sg
# 23Jan98 $$8 JJE Add startup message
# 27Jan98 $$9 JJE Add c
# 31Jan98 $$10 JJE Don't echo arg
# 23Feb98 $$11 ZRL Added remote instal
# 06Apr98 $$12 JJE Add sgi_mips
# 22Jun98 $$13 ZRL removed galaxy librar
# 29Jun98 ##14 ZRL use galaxy library only on sgi_elf
# 11Aug98 $$14 JJE Fix remote install for mips
# 22Oct98 $$15 TWH Fixed remote instal
# 11Nov98 TWH Fixed cleanu
# 20Nov98 $$16 TWH Fixed Trusted login check for Su
# 08Sep99 $$17 JJE Migrate to new installe
# 20Oct99 $$18 MYA Add DPS_DIRECTOR
# 07Aug00 TWH Check if hpux11_pa32 exist
# 22Aug00 $$19 TWH rewritten to /bin/sh for multic
# 18Sep00 $$20 TWH support non \c echo; multicd iff using redirec
# 09Oct00 $$21 TWH Fix commandline args; fix PROSETUP_EXE bu
# 31Oct00 $$22 TWH Fix for $0 == setup
# 17Jan01 $$23 TWH always run sun4_solaris instead of _64 this scrip
# 16May01 $$24 TWH always run hpux11_pa32 instead of hpux_pa6
# 13Jun02 $$25 JJE Support 64 ar
# 16Jul02 $$26 TWH Set TMP & TEMP if not se
# 20Aug02 $$27 TWH Fix #2
# 26Aug02 $$28 TWH Another fix for #2
# 23Jan03 J0341 $$29 MAZ Support PROSETUP_EXE in multicd mod
#===========================================================
rundir=`pwd
fullscrname=$
# :
scrname=`echo $fullscrname | awk F"/ '{ print $NF}'
# :
fullscrpath=`echo $fullscrname | awk F"/ '{ ORS="/"} { n=split($0A)
{ for (i = 1; i < n; i++) print A[i] }'
if [ $fullscrpath =
the
fullscrpath=$
els
fullscrpath=`echo $fullscrpath | awk '{ n=length($0)} { n = 1}
print substr($01n)}'
f
if [ $fullscrpath = $fullscrname
the
fullscrpath=`pwd
els
cd $fullscrpat
fullscrpath=`pwd
f
echostr=`echo test \c"
if [ $echostr = test \c
the
alt_echo=tru
f
bit_mode_64úls
other_args="
i=
while [ $i le $#
d
if [ $1 = display
the
shif
echo setting DISPLAY to: $1
DISPLAY="$1
export DISPLA
shif
elif [ $1 = ? o $1 = h o $1 = help
the
echo
echo Usage: $scrname [ display unix:0 ]
exit
elif [ $1 = remote
the
echo
echo Sorry remote installation is not supported in this release.
exit
elif [ $1 = cdrom
the
shif
echo setting CDROM path to: $1
fullscrpath="$1
shif
elif [ $1 = 64
the
shif
bit_mode_64=tru
els
other_args="$other_args $1
shif
f
don
cd $rundi
prodir=$fullscrpat
imagedir=$fullscrpat
getpmtscr="getpmt.csh
if [ ! x $imagedir/$getpmtscr
the
echo
echo ERROR: $imagedir/$getpmtscr file is missing.
echo Check the name of the CD mount directory.
exit
f
mctype=`$imagedir/$getpmtscr
if [ $mctype = UNKNOWN
the
echo
echo ERROR: OS name unknown.
exit
f
test $TMP
if [ $? != 0
the
if [ x /tmp
the
TMP="/tmp
export TM
elif [ x /var/tmp
the
TMP="/var/tmp
export TM
f
f
test $TEMP
if [ $? != 0
the
if [ x /tmp
the
TEMP="/tmp
export TEM
elif [ x /var/tmp
the
TEMP="/var/tmp
export TEM
f
f
test $DISPLAY
if [ $? != 0
the
echo
echo 'ERROR: The DISPLAY variable is not set
echo
echo Options:
echo o Press <cr to set DISPLAY to `hostname`:0.0
echo o Type a value to use for the DISPLAY variable
echo o Enter 'q' to abort prosetup
echo o Specify 'display <host:0' on the command line
echo
test $alt_echo
if [ $? = 0
the
echo n Set it to (`hostname`:0.0): [q to abort]
els
echo Set it to (`hostname`:0.0): [q to abort] \c"
fi
read line
if [ $line = q* o $line = Q* ]
then
exit 1
elif [ $line = ]
then
DISPLAY="`hostname`:0.0"
export DISPLAY
else
DISPLAY="$line"
export DISPLAY
fi
echo "
echo DISPLAY has been set to: $DISPLAY"
echo "
fi
echo "
test $alt_echo"
if [ $? = 0 ]
then
echo n Starting PTC.Setup please wait "
else
echo Starting PTC.Setup please wait \c"
fi
if [ $mctype = sun4_solaris_64 a $bit_mode_64 = false ]
then
mctype="sun4_solaris"
fi
if [ $mctype = sun4_solaris ]
then
PATH=$PATH:/usr/ucb
export PATH
fi
if [ $mctype = sgi_elf2 o $mctype = sgi_mips4 ]
then
PATH=.:$PATH
export PATH
fi
if [ $mctype = hpux_pa64 a $bit_mode_64 = false ]
then
mctype="hpux11_pa32"
fi
if [ $mctype = hpux11_pa32 ]
then
if [ ! d $imagedir/dsrc/$mctype ]
then
mctype="hp8k"
fi
fi
test $PROSETUP_EXE"
if [ $? != 0 ]
then
PROSETUP_EXE="$imagedir/dsrc/$mctype/obj/ptcsetup"
elif [ x $PROSETUP_EXE ]
then
echo "
test $alt_echo"
if [ $? = 0 ]
then
echo n Using $PROSETUP_EXE "
else
echo Using $PROSETUP_EXE \c"
fi
fi
if [ ! x $PROSETUP_EXE ]
then
echo "
echo ERROR: $PROSETUP_EXE file is missing."
echo Check the name of the CD mount directory."
exit 1
fi
REDIRECT_EXE="$imagedir/dsrc/$mctype/obj/redirect"
if [ x $REDIRECT_EXE ]
then
($REDIRECT_EXE $other_args multicd ) &
else
($PROSETUP_EXE $other_args ) &
fi
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
lhabert
doure :
voici le code original !
Euh, tu as encore plein de saloperies qui trainent dedans (des caractères entre 128 et 159). Le webnews que tu utilises semble bien foireux. Essaye de m'envoyer le fichier par mail, *en attachement*.
doure :
voici le code original !
Euh, tu as encore plein de saloperies qui trainent dedans (des caractères
entre 128 et 159). Le webnews que tu utilises semble bien foireux. Essaye
de m'envoyer le fichier par mail, *en attachement*.
Euh, tu as encore plein de saloperies qui trainent dedans (des caractères entre 128 et 159). Le webnews que tu utilises semble bien foireux. Essaye de m'envoyer le fichier par mail, *en attachement*.