--- alx-src/branches/alxconf-060/plugins/egk-scm/plugin.sh 2012/04/13 18:05:23 3470 +++ alx-src/branches/alxconf-060/plugins/egk-scm/plugin.sh 2012/04/19 12:17:20 3503 @@ -3,10 +3,12 @@ PLUGIN_NAME="egk-scm" PLUGIN_MENUITEM_NAME="SUM_EGK" PLUGIN_MENUITEM_EXEC="rdesktop" -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\"' PLUGIN_MENUITEM_WORKDIR="" PLUGIN_MENUITEM_ICON="" +PLUGIN_AUTOSTART=1 + PLUGIN_PACKAGES="libusb libusb-compat pcsc-lite pcsc-plugin-ehealth200" install_plugin() @@ -30,14 +32,26 @@ # create desktop buttons create_menuitem() { + if [ -f /etc/alxconfig-ng/plugin-rdesktop.conf ] + then + source /etc/alxconfig-ng/plugin-rdesktop.conf + fi + [[ -z ${PLUGIN_CONFIG_PARAM} ]] && PLUGIN_CONFIG_PARAM="" + [[ -z ${PLUGIN_CONFIG_SERVER} ]] && PLUGIN_CONFIG_SERVER="" + # don't touch these echo, define variables above echo "PLUGIN_MENUITEM_NAME=\"${PLUGIN_MENUITEM_NAME}\"" echo "PLUGIN_MENUITEM_EXEC=\"${PLUGIN_MENUITEM_EXEC}\"" - echo "PLUGIN_MENUITEM_PARAM=\"${PLUGIN_MENUITEM_PARAM}\"" + echo "PLUGIN_MENUITEM_PARAM=\"${PLUGIN_CONFIG_PARAM} ${PLUGIN_MENUITEM_PARAM} ${PLUGIN_CONFIG_SERVER}\"" echo "PLUGIN_MENUITEM_WORKDIR=\"${PLUGIN_MENUITEM_WORKDIR}\"" echo "PLUGIN_MENUITEM_ICON=\"${PLUGIN_MENUITEM_ICON}\"" } +autostart_plugin() +{ + echo "PLUGIN_AUTOSTART=\"${PLUGIN_AUTOSTART}\"" +} + uninstall_plugin() { local i @@ -57,6 +71,7 @@ install) install_plugin ;; setup) setup_plugin ;; menuitem) create_menuitem ;; + autostart) autostart_plugin ;; uninstall) uninstall_plugin ;; *) echo "PLUGIN '${PLUGIN_NAME}': unkown operation '$1'" ;; esac