correct installscripts for omnios

This commit is contained in:
Mario Fetka
2024-05-29 07:23:42 +02:00
parent 9083ad65a0
commit 42eb38d71e
3 changed files with 9 additions and 5 deletions

View File

@@ -39,6 +39,10 @@ TAR=tar
GZIP=gzip
MIDX=9;
cd "$(dirname "$0")"
SCRIPT_DIR="$(pwd)"
echo "Script directory: $SCRIPT_DIR"
# For solaris ...
PATH=/usr/ucb:$PATH
@@ -88,11 +92,11 @@ echo " The simple script, \`unrotate' has been supplied to unrotate files i
echo " a given directory, should something go wrong."
echo ""
$GZIP -d < $1 | $TAR -tf - | while read file
$GZIP -d < $SCRIPT_DIR/$1 | $TAR -tf - | while read file
do
cd $directory
echo $file
test -f $file && rotate $file $idx && echo "Rotated old file $file"
done
$GZIP -d < $1 | (cd $directory ; $TAR -xvpf - )
$GZIP -d < $SCRIPT_DIR/$1 | (cd $directory ; $TAR -xvpf - )

View File

@@ -70,7 +70,7 @@ set MACHINE=`uname -m`
set dirname=`dirname $0`
if ( $MACHINE = "sun4m" ) then
if ( "$MACHINE" == "sun4m" ) then
switch ($ARCH)
case SunOS:
if ( `uname -r` == 5.6 ) then
@@ -92,7 +92,7 @@ switch ($ARCH)
endsw
endif
if ( $MACHINE = "i86pc" ) then
if ( "$MACHINE" == "i86pc" ) then
switch ($ARCH)
case SunOS:
if ( `uname -r` == 5.11 ) then