rework setup script to handle SX
This commit is contained in:
parent
37fbf78e2a
commit
a8d87dac4c
1 changed files with 18 additions and 8 deletions
26
dist/setup-x48ng-home.sh
vendored
26
dist/setup-x48ng-home.sh
vendored
|
@ -1,15 +1,25 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
TARGET=${TARGET:-.x48ng}
|
DOTX48NG=${DOTX48NG:-.x48ng}
|
||||||
|
|
||||||
mkdir -p ~/${TARGET}
|
ROM=${ROM:-@PREFIX@/share/x48ng/ROMsgxrom-r}
|
||||||
|
|
||||||
cp @PREFIX@/share/x48ng/ROMs/gxrom-r ~/${TARGET}/rom.dump
|
[ -d ~/${DOTX48NG} ] && rm -fr ~/${DOTX48NG}
|
||||||
cp ~/${TARGET}/rom.dump ~/${TARGET}/rom
|
mkdir -p ~/${DOTX48NG}
|
||||||
|
|
||||||
cd ~/${TARGET}
|
cp $ROM ~/${DOTX48NG}/rom.dump
|
||||||
|
cp ~/${DOTX48NG}/rom.dump ~/${DOTX48NG}/rom
|
||||||
|
cd ~/${DOTX48NG}
|
||||||
|
|
||||||
@PREFIX@/share/x48ng/mkcard 128K port1
|
PORT1_SIZE=128K
|
||||||
@PREFIX@/share/x48ng/mkcard 4M port2
|
PORT2_SIZE=4M
|
||||||
|
|
||||||
@PREFIX@/bin/x48ng -initialize -home ${TARGET}
|
if $(echo $ROM | grep -q "^sx"); then
|
||||||
|
PORT2_SIZE=128K
|
||||||
|
fi
|
||||||
|
|
||||||
|
@PREFIX@/share/x48ng/mkcard $PORT1_SIZE port1
|
||||||
|
@PREFIX@/share/x48ng/mkcard $PORT2_SIZE port2
|
||||||
|
|
||||||
|
cd ~/${DOTX48NG}/
|
||||||
|
@PREFIX@/bin/x48ng -home ${DOTX48NG} -verbose -initialize
|
||||||
|
|
Loading…
Add table
Reference in a new issue