Relative startup scripts
This commit is contained in:
@@ -1,10 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
MY_PATH=$(dirname "$0")
|
||||
export PKG=${MY_PATH}/..
|
||||
|
||||
#Check if running as e-account
|
||||
for i in "$@"
|
||||
do
|
||||
case $i in
|
||||
|
||||
-pkg=*)
|
||||
export PKG="${i#*=}"
|
||||
;;
|
||||
|
||||
*) # unknown option
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
/opt/gfa/pshell/pshell \
|
||||
-version=v1_17 \
|
||||
-py3 \
|
||||
-m=/opt/gfa/pshell/apps/psss_panel \
|
||||
-m=${PKG} \
|
||||
-z \
|
||||
-nbcf=true \
|
||||
-laf=dark \
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
MY_PATH=$(dirname "$0")
|
||||
export PKG=${MY_PATH}/..
|
||||
|
||||
#Check if running as e-account
|
||||
for i in "$@"
|
||||
do
|
||||
case $i in
|
||||
|
||||
-pkg=*)
|
||||
export PKG="${i#*=}"
|
||||
;;
|
||||
|
||||
*) # unknown option
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
/opt/gfa/pshell/pshell \
|
||||
-py3 \
|
||||
@@ -8,6 +25,6 @@
|
||||
-nbcf=true \
|
||||
-laf=dark \
|
||||
-pini=true \
|
||||
-setp=/opt/gfa/pshell/apps/psss_panel/config/setup.properties \
|
||||
-setp=${PKG}/config/setup.properties \
|
||||
-p=PSSS.java \
|
||||
$@
|
||||
|
||||
@@ -59,7 +59,7 @@ public class PSSS extends Panel {
|
||||
spFromEn.setValue(energy-150);
|
||||
spToEn.setValue(energy+150);
|
||||
} catch (Exception ex) {
|
||||
getLogger().log(Level.WARNING, null, ex);
|
||||
getLogger().warning("Error reading energy_machine");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user