summarylogtreecommitdiffstats
path: root/JRomManager.sh
blob: 66b7ae5fda46e3c609d0f19ba10ae79b387e4d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
cd /usr/share/java/jrommanager-bin
OPT=-Xmx1g
which grep >/dev/null
if [ $? -eq 0 ]; then
	which file >/dev/null
	if [ $? -eq 0 ]; then
		file -L $(which java) | grep -q '64-bit'
		if [ $? -eq 0 ]; then OPT=-Xmx2g; fi
	else
		java --version | grep -q '64-Bit'
		if [ $? -eq 0 ]; then OPT=-xmx2g; fi
	fi
fi
java $OPT -jar JRomManager.jar --multiuser --noupdate&