better first-run script

This commit is contained in:
Gwenhael Le Moine 2023-04-30 19:08:53 +02:00
parent 51090dc093
commit d5d7f22240
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

14
setup-x48ng-home.sh Normal file → Executable file
View file

@ -1,11 +1,15 @@
mkdir -p ~/.x48ng
#!/usr/bin/env sh
cp @PREFIX@/share/x48ng/ROMs/gxrom-r ~/.x48ng/rom.dump
cp ~/.x48ng/rom.dump ~/.x48ng/rom
TARGET=${TARGET:-.x48ng}
cd ~/.x48ng
mkdir -p ~/${TARGET}
cp @PREFIX@/share/x48ng/ROMs/gxrom-r ~/${TARGET}/rom.dump
cp ~/${TARGET}/rom.dump ~/${TARGET}/rom
cd ~/${TARGET}
@PREFIX@/share/x48ng/mkcard 128K port1
@PREFIX@/share/x48ng/mkcard 4M port2
@PREFIX@/bin/x48ng -initialize
@PREFIX@/bin/x48ng -initialize -home ${TARGET}