3 |
PLUGIN_NAME="egk-scm" |
PLUGIN_NAME="egk-scm" |
4 |
PLUGIN_MENUITEM_NAME="SUM_EGK" |
PLUGIN_MENUITEM_NAME="SUM_EGK" |
5 |
PLUGIN_MENUITEM_EXEC="rdesktop" |
PLUGIN_MENUITEM_EXEC="rdesktop" |
6 |
PLUGIN_MENUITEM_PARAM='-r scard:"eHealth200 Terminal [Vendor Interface] 00 00"="SCM Microsystems Inc. Terminal0-Patient slot 0","eHealth200 Terminal [Vendor Interface] 00 01"="SCM Microsystems Inc. Terminal0-Doctor slot 0" 128.20.100.33' |
PLUGIN_MENUITEM_PARAM='-r scard:\"eHealth200 Terminal 00 00\"=\"SCM Microsystems Inc. Terminal0-Patient slot 0\",\"eHealth200 Terminal 00 01\"=\"SCM Microsystems Inc. Terminal0-Doctor slot 0\"' |
7 |
PLUGIN_MENUITEM_WORKDIR="" |
PLUGIN_MENUITEM_WORKDIR="" |
8 |
PLUGIN_MENUITEM_ICON="" |
PLUGIN_MENUITEM_ICON="" |
9 |
|
|
10 |
|
PLUGIN_AUTOSTART=1 |
11 |
|
|
12 |
PLUGIN_PACKAGES="libusb libusb-compat pcsc-lite pcsc-plugin-ehealth200" |
PLUGIN_PACKAGES="libusb libusb-compat pcsc-lite pcsc-plugin-ehealth200" |
13 |
|
|
14 |
install_plugin() |
install_plugin() |
32 |
# create desktop buttons |
# create desktop buttons |
33 |
create_menuitem() |
create_menuitem() |
34 |
{ |
{ |
35 |
|
if [ -f /etc/alxconfig-ng/plugin-rdesktop.conf ] |
36 |
|
then |
37 |
|
source /etc/alxconfig-ng/plugin-rdesktop.conf |
38 |
|
fi |
39 |
|
[[ -z ${PLUGIN_CONFIG_PARAM} ]] && PLUGIN_CONFIG_PARAM="" |
40 |
|
[[ -z ${PLUGIN_CONFIG_SERVER} ]] && PLUGIN_CONFIG_SERVER="" |
41 |
|
|
42 |
# don't touch these echo, define variables above |
# don't touch these echo, define variables above |
43 |
echo "PLUGIN_MENUITEM_NAME=\"${PLUGIN_MENUITEM_NAME}\"" |
echo "PLUGIN_MENUITEM_NAME=\"${PLUGIN_MENUITEM_NAME}\"" |
44 |
echo "PLUGIN_MENUITEM_EXEC=\"${PLUGIN_MENUITEM_EXEC}\"" |
echo "PLUGIN_MENUITEM_EXEC=\"${PLUGIN_MENUITEM_EXEC}\"" |
45 |
echo "PLUGIN_MENUITEM_PARAM=\"${PLUGIN_MENUITEM_PARAM}\"" |
echo "PLUGIN_MENUITEM_PARAM=\"${PLUGIN_CONFIG_PARAM} ${PLUGIN_MENUITEM_PARAM} ${PLUGIN_CONFIG_SERVER}\"" |
46 |
echo "PLUGIN_MENUITEM_WORKDIR=\"${PLUGIN_MENUITEM_WORKDIR}\"" |
echo "PLUGIN_MENUITEM_WORKDIR=\"${PLUGIN_MENUITEM_WORKDIR}\"" |
47 |
echo "PLUGIN_MENUITEM_ICON=\"${PLUGIN_MENUITEM_ICON}\"" |
echo "PLUGIN_MENUITEM_ICON=\"${PLUGIN_MENUITEM_ICON}\"" |
48 |
} |
} |
49 |
|
|
50 |
|
autostart_plugin() |
51 |
|
{ |
52 |
|
echo "PLUGIN_AUTOSTART=\"${PLUGIN_AUTOSTART}\"" |
53 |
|
} |
54 |
|
|
55 |
uninstall_plugin() |
uninstall_plugin() |
56 |
{ |
{ |
57 |
local i |
local i |
71 |
install) install_plugin ;; |
install) install_plugin ;; |
72 |
setup) setup_plugin ;; |
setup) setup_plugin ;; |
73 |
menuitem) create_menuitem ;; |
menuitem) create_menuitem ;; |
74 |
|
autostart) autostart_plugin ;; |
75 |
uninstall) uninstall_plugin ;; |
uninstall) uninstall_plugin ;; |
76 |
*) echo "PLUGIN '${PLUGIN_NAME}': unkown operation '$1'" ;; |
*) echo "PLUGIN '${PLUGIN_NAME}': unkown operation '$1'" ;; |
77 |
esac |
esac |