#!/bin/sh
INSTDIR="$1"

sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/etc/scam_3.60.emu"

if [ "/mnt/swapextensions" == "$INSTDIR" ]; then
	sed s#_type_#"MNT"#g -i "$INSTDIR/etc/scam_3.60.emu"
elif [ "/var/swap" == "$INSTDIR" ]; then
	sed s#_type_#"SWAP"#g -i "$INSTDIR/etc/scam_3.60.emu"
else
	sed s#_type_#"VAR"#g -i "$INSTDIR/etc/scam_3.60.emu"	
fi


exit 0