summaryrefslogtreecommitdiff
path: root/user/java-common/java-common.trigger
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-02-26 19:59:11 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-02-26 20:10:47 +0000
commitd71ae2f9370d6d61af17b9e922e44476b3b5e261 (patch)
treee2eeaf03eac04738051e51165ad4901140a0b4a9 /user/java-common/java-common.trigger
parent3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c (diff)
downloadpackages-d71ae2f9370d6d61af17b9e922e44476b3b5e261.tar.gz
packages-d71ae2f9370d6d61af17b9e922e44476b3b5e261.tar.bz2
packages-d71ae2f9370d6d61af17b9e922e44476b3b5e261.tar.xz
packages-d71ae2f9370d6d61af17b9e922e44476b3b5e261.zip
user/java-common: new package
Diffstat (limited to 'user/java-common/java-common.trigger')
-rw-r--r--user/java-common/java-common.trigger13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/java-common/java-common.trigger b/user/java-common/java-common.trigger
new file mode 100644
index 000000000..6d0613d48
--- /dev/null
+++ b/user/java-common/java-common.trigger
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -x /usr/lib/jvm/forced-jvm ]; then
+ ln -sfn forced-jvm default-jvm
+ exit 0
+fi
+
+cd /usr/lib/jvm
+LATEST=`ls -d java-* | sort -r | head -1`
+if [ "$LATEST" ]; then
+ ln -sfn $LATEST default-jvm
+fi
+