Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Re: probleme de script d'installation sh sur mandrake 10

1 réponse
Avatar
doure
voici le code original
sans les changements!
elif [ “$1” = “?” || “$1” = “–h” || “$1” = “–help”

texte complet cj-dessou
###############################################################
#!/bin/sh –
#============================================================# MODIFICATION
# ––––––––––––––––––––––––––––––––––––––––––––––––––––––––
# 06–Oct–97 $$1 JJE Created
# 28–Oct–97 $$2 JJE Use –dir
# 05–Dec–97 $$3 JJE Remove –vrdirs‚ set LC_NUMERIC to
# 22–Dec–97 $$4 JJE Check DISPLA
# 05–Jan–98 $$5 JJE ignoreddd
# 13–Jan–98 $$6 JJE Use delta li
# 22–Jan–98 $$7 JJE Add · to path on sg
# 23–Jan–98 $$8 JJE Add startup message
# 27–Jan–98 $$9 JJE Add c
# 31–Jan–98 $$10 JJE Don't echo arg
# 23–Feb–98 $$11 ZRL Added remote instal
# 06–Apr–98 $$12 JJE Add sgi_mips
# 22–Jun–98 $$13 ZRL removed galaxy librar
# 29–Jun–98 ##14 ZRL use galaxy library only on sgi_elf
# 11–Aug–98 $$14 JJE Fix remote install for mips
# 22–Oct–98 $$15 TWH Fixed remote instal
# 11–Nov–98 TWH Fixed cleanu
# 20–Nov–98 $$16 TWH Fixed Trusted login check for Su
# 08–Sep–99 $$17 JJE Migrate to new installe
# 20–Oct–99 $$18 MYA Add DPS_DIRECTOR
# 07–Aug–00 TWH Check if hpux11_pa32 exist
# 22–Aug–00 $$19 TWH rewritten to /bin/sh for multic
# 18–Sep–00 $$20 TWH support non \c echo; –multicd iff using redirec
# 09–Oct–00 $$21 TWH Fix command–line args; fix PROSETUP_EXE bu
# 31–Oct–00 $$22 TWH Fix for $0 == “setup
# 17–Jan–01 $$23 TWH always run sun4_solaris instead of _64 this scrip
# 16–May–01 $$24 TWH always run hpux11_pa32 instead of hpux_pa6
# 13–Jun–02 $$25 JJE Support –64 ar
# 16–Jul–02 $$26 TWH Set TMP & TEMP if not se
# 20–Aug–02 $$27 TWH Fix #2
# 26–Aug–02 $$28 TWH Another fix for #2
# 23–Jan–03 J–03–41 $$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($0‚A)
{ 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($0‚1‚n)}'
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

PTC_CDHOME=$imagedir
export PTC_CDHOME
PS_DIRECTORY=$imagedir/dsrc
export PS_DIRECTORY
DPS_DIRECTORY=$imagedir/dsrc
export DPS_DIRECTORY
PRO_MACHINE_TYPE=$mctype
export PRO_MACHINE_TYPE
LC_NUMERIC=C
export LC_NUMERIC

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

echo “"
exit 0
####################################################


--
doure

------------------------------------------------------------------------
Voir theme: http://www.frbox.net/viewtopic-536596.html

Envoyé de http://www.frbox.net

1 réponse

Avatar
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*.