updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / lexmark-inkjet-legacy / umf.sh
blob290f5ac77ffe1329dbdbc3ee5a70d55e2ebe407d
1 #!/bin/sh
2 OS_ARCH=`uname -aa | grep x86_64`
3 ARCH=''
4 if [ -n "$OS_ARCH" ]; then
5 ARCH=64
6 fi
7 JAVA_CMD=java
8 if [ -f "/usr/share/lexmark/fwu_legacy/jre/bin/java" ]; then
9 JAVA_CMD="/usr/share/lexmark/fwu_legacy/jre/bin/java"
10 elif [ -f "/usr/share/lexmark/wsu_legacy/jre/bin/java" ]; then
11 JAVA_CMD="/usr/share/lexmark/wsu_legacy/jre/bin/java"
12 elif [ -f "/usr/share/lexmark/legacy/jre/bin/java" ]; then
13 JAVA_CMD="/usr/share/lexmark/legacy/jre/bin/java"
14 elif [ -f "/usr/bin/java" ]; then
15 JAVA_CMD="/usr/bin/java"
16 elif [ -f "/etc/alternatives/java" ]; then
17 JAVA_CMD="/etc/alternatives/java"
18 else
19 exit 1
21 ${JAVA_CMD} -Djava.library.path=/usr/share/lexmark/legacy/lib${ARCH} -Ddbus=mdwapclss.apps.umframework.DBusProxyLegacy -classpath /usr/share/lexmark/legacy/jar/debug-disable-1.1.jar:/usr/share/lexmark/legacy/jar/hexdump-0.2.jar:/usr/share/lexmark/legacy/jar/libdbus-java-2.6.jar:/usr/share/lexmark/legacy/jar/unix-0.5.jar:/usr/share/lexmark/legacy/jar/xpp3_min-1.1.4c.jar:/usr/share/lexmark/legacy/jar/xstream-1.3.1.jar:/usr/share/lexmark/legacy/jar/uiframework.jar:/usr/share/lexmark/legacy/jar/tools.jar:/usr/share/lexmark/legacy/jar/devicecore.jar:/usr/share/lexmark/legacy/jar/config.jar:/usr/share/lexmark/legacy/jar/localize.jar:/usr/share/lexmark/legacy/jar/umframework.jar mdwapclss.apps.umframework.UserMessagingFramework