[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] Install script
In the script below someone told me how to get the CPU type, is it
possible to determine the machine type as well ? eg TT, Falcon, Milan
etc.
Regards,
Peter
#!/bin/bash
cd ~
if [ $# -ne 2 ] ¦¦ [ -z "$1" ] ;then
echo
echo usage: $0 filename.tar.bz2 system_type
echo Put the downloaded .tar.bz2 into the home folder
echo
echo system_type is either 000, 020, 030, 040, 060, ara, mil40, mil60, v4e
echo
exit
fi
echo Machine CPU type
cat /kern/cpuinfo ¦grep CPU
echo
SRCF=$1
TGTF="/tmp/"$1
ROOTD="/c/mint"
COPYD="/tmp"
cd $COPYD
echo Extract archive...
tar -jvxf ~/$1
mkdir install
mkdir install/xaaes
cd mint/1-18-CUR/xaaes
case "$2" in
"000")
echo 68000
KERNEL=mint000.prg
XAAES=xaaes000.km
;;
"020")
echo 68020
KERNEL=mint020.prg
XAAES=xaaes000.km
;;
"030")
echo 68030
KERNEL=mint030.prg
XAAES=xaaes030.km
;;
"040")
echo 68040
KERNEL=mint040.prg
XAAES=xaaes040.km
;;
"060")
echo 68060
KERNEL=mint060.prg
XAAES=xaaes060.km
;;
"ara")
echo Aranym
KERNEL=mintara.prg
XAAES=xaaes000.km
;;
"mil40")
echo Milan 68040
### mv -v xaaes040.km $COPYD/install/xaaes/xaaes.km
mv -v moose_w.adi $COPYD/install/xaaes/
KERNEL=mintmil.prg
XAAES=xaaes040.km
;;
"mil60")
echo Milan 68060
pwd
mv -v moose_w.adi $COPYD/install/xaaes/
KERNEL=mintmil.prg
XAAES=xaaes060.km
;;
"v4e")
echo Coldfire V4e
mv -v moose_w.adi $COPYD/install/xaaes/
KERNEL=mintv4e.prg
XAAES=xaaesv4e.km
;;esac
mv -v /tmp/auto/$KERNEL $COPYD/install/
mv -v $XAAES $COPYD/install/xaaes/
mv -v img $COPYD/install/xaaes/
mv -v widgets $COPYD/install/xaaes/
mv -v xobj $COPYD/install/xaaes/
mv -v xaloader.prg $COPYD/install/xaaes/
mv -v xa_*.* $COPYD/install/xaaes/
mv -v xaaes*.rsc $COPYD/install/xaaes/
MON=$(date +%m)
cd $COPYD
INSTALL=install_1-17-$MON
mv install $INSTALL