diff options
Diffstat (limited to 'bg2')
-rwxr-xr-x | bg2/install-soa-4cd-us-extra.sh | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/bg2/install-soa-4cd-us-extra.sh b/bg2/install-soa-4cd-us-extra.sh index 6374720..402f75f 100755 --- a/bg2/install-soa-4cd-us-extra.sh +++ b/bg2/install-soa-4cd-us-extra.sh @@ -28,13 +28,26 @@ CD2_MD5="c78f41ff4cb47ea04fdf25ea6f55eb8b" CD3_MD5="61fa51451c9ab102383c082fac3687dc" CD4_MD5="d13f925c01c1f78fd35baa708715ebbd" +function bgtwo_smart_install +{ + # usage cd# + cp -r "${CDMOUNT}/CD${1}/" "$TARGETDIR/data" + chmod -R 755 "$TARGETDIR/data/CD${1}" + mkdir -p "$TARGETDIR/cd${1}/data" + mv "$TARGETDIR/data/CD${1}/Data/AREA"*".bif" "$TARGETDIR/cd${1}/data" + mv "$TARGETDIR/data/CD${1}/Data/"* "$TARGETDIR/data" + mv "$TARGETDIR/data/CD${1}/Movies" "$TARGETDIR/cd${1}/movies" + rm -r "$TARGETDIR/data/CD${1}/" + +} + getcd 2 $CD2_MD5 "data3.cab" -copylower "${CDMOUNT}/CD2/" "$TARGETDIR" +bgtwo_smart_install 2 getcd 3 $CD3_MD5 "data4.cab" -copylower "${CDMOUNT}/CD3/" "$TARGETDIR" +bgtwo_smart_install 3 getcd 4 $CD4_MD5 "data5.cab" -copylower "${CDMOUNT}/CD4/" "$TARGETDIR" +bgtwo_smart_install 4 teardown "$TARGETDIR" |