#!/bin/sh
ps -ef|grep WebTwainService|grep -v grep|grep -v uninstall|cut -c 9-15|xargs kill -9  
rm -rf /etc/rcS.d/*WebTwainServiced
rm -f /etc/init.d/WebTwainServiced
rm -rf /usr/bin/WebTwainServiceMgr
rm -rf /usr/bin/WebTwainCertCheckMgr
rm -rf /opt/dynamsoft/WebTwainService
rm -rf /usr/lib/dynamsoft/WebTwainService
sed -i '/WebTwainService/d'  /etc/profile
dpkg -r dynamsoft-webtwain-service
