1#!/bin/bash 2# install script of 9108 driver 3# created by qiaoyongkang 20130319 4 5#VERSION=1.0.0.4 6 7UnInstallLctDriver() 8{ 9 echo -e -n "\nDriver UnInstalling.....\n" 10 rm -rf /lib/udev/rules.d/26-longcheer-Datacard.rules 11 rm -rf /lib/udev/rules.d/11-longcheer-Datacard.rules 12 rm -rf /lib/udev/longcheer-cm55-ejectcd 13 rm -rf /lib/udev/longcheer-cm55-testcd 14 rm -rf /lib/udev/load_driver.sh 15 rm -rf /lib/udev/lcdoshift 16 rmmod -f lc_ether 17 18} 19 20if [ `id | awk '{print $1}'` != "uid=0(root)" ] 21then 22 echo "You must run the process by root." 23 read COMMAND 24 exit 25fi 26UnInstallLctDriver 27 28 29 30