#!/bin/sh QPKG_INSTALL_PATH=`/sbin/getcfg -f /etc/config/qpkg.conf CloudConnector3 Install_Path` NC_TOOL_BIN="/usr/local/sbin/nc_tool" case "$1" in start) if [ -x $NC_TOOL_BIN ]; then $NC_TOOL_BIN register -p $QPKG_INSTALL_PATH export NC_APP_ID="A999" fi sh $QPKG_INSTALL_PATH/HBS_CloudConnector3.sh $1 CloudConnector3 ;; stop) if [ -x $NC_TOOL_BIN ]; then $NC_TOOL_BIN unregister -A A999 fi sh $QPKG_INSTALL_PATH/HBS_CloudConnector3.sh $1 CloudConnector3 ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit 0