|
| 1 | +#!/bin/bash |
| 2 | +##################################################################################################################### |
| 3 | +# Description : This script uninstalls all the necessary files (libraries, firmwares, udev, include) on RPI3 machine. |
| 4 | +# Written by : MiaoYongQiang (davis_miao@126.com) |
| 5 | +# Version : V4.0.13 |
| 6 | +# Date : 2019-02-18 |
| 7 | +##################################################################################################################### |
| 8 | + |
| 9 | +# uninstall QHYCCD SDK |
| 10 | + |
| 11 | + |
| 12 | +find /lib -name "libqhyccd*" -exec rm -f {} \; |
| 13 | +find /usr/lib -name "libqhyccd*" -exec rm -f {} \; |
| 14 | +find /usr/local/lib -name "libqhyccd*" -exec rm -f {} \; |
| 15 | + |
| 16 | +find /lib -name "QHY*.HEX" -exec rm -f {} \; |
| 17 | +find /lib -name IC16200A.HEX -exec rm -f {} \; |
| 18 | +find /lib -name IC16803.HEX -exec rm -f {} \; |
| 19 | +find /lib -name IC8300.HEX -exec rm -f {} \; |
| 20 | +find /lib -name IC90A.HEX -exec rm -f {} \; |
| 21 | +find /lib -name IMG0H.HEX -exec rm -f {} \; |
| 22 | +find /lib -name IMG2P.HEX -exec rm -f {} \; |
| 23 | +find /lib -name IMG2S.HEX -exec rm -f {} \; |
| 24 | +find /lib -name IMG50.HEX -exec rm -f {} \; |
| 25 | +find /lib -name POLEMASTER.HEX -exec rm -f {} \; |
| 26 | +find /lib -name miniCam5.HEX -exec rm -f {} \; |
| 27 | +find /lib -name "QHY*.img" -exec rm -f {} \; |
| 28 | + |
| 29 | +find /usr/lib -name "QHY*.HEX" -exec rm -f {} \; |
| 30 | +find /usr/lib -name IC16200A.HEX -exec rm -f {} \; |
| 31 | +find /usr/lib -name IC16803.HEX -exec rm -f {} \; |
| 32 | +find /usr/lib -name IC8300.HEX -exec rm -f {} \; |
| 33 | +find /usr/lib -name IC90A.HEX -exec rm -f {} \; |
| 34 | +find /usr/lib -name IMG0H.HEX -exec rm -f {} \; |
| 35 | +find /usr/lib -name IMG2P.HEX -exec rm -f {} \; |
| 36 | +find /usr/lib -name IMG2S.HEX -exec rm -f {} \; |
| 37 | +find /usr/lib -name IMG50.HEX -exec rm -f {} \; |
| 38 | +find /usr/lib -name POLEMASTER.HEX -exec rm -f {} \; |
| 39 | +find /usr/lib -name miniCam5.HEX -exec rm -f {} \; |
| 40 | +find /usr/lib -name "QHY*.img" -exec rm -f {} \; |
| 41 | + |
| 42 | +find /usr/local -name "QHY*.HEX" -exec rm -f {} \; |
| 43 | +find /usr/local -name IC16200A.HEX -exec rm -f {} \; |
| 44 | +find /usr/local -name IC16803.HEX -exec rm -f {} \; |
| 45 | +find /usr/local -name IC8300.HEX -exec rm -f {} \; |
| 46 | +find /usr/local -name IC90A.HEX -exec rm -f {} \; |
| 47 | +find /usr/local -name IMG0H.HEX -exec rm -f {} \; |
| 48 | +find /usr/local -name IMG2P.HEX -exec rm -f {} \; |
| 49 | +find /usr/local -name IMG2S.HEX -exec rm -f {} \; |
| 50 | +find /usr/local -name IMG50.HEX -exec rm -f {} \; |
| 51 | +find /usr/local -name POLEMASTER.HEX -exec rm -f {} \; |
| 52 | +find /usr/local -name miniCam5.HEX -exec rm -f {} \; |
| 53 | +find /usr/local -name "QHY*.img" -exec rm -f {} \; |
| 54 | + |
| 55 | + |
| 56 | +rm -f /lib/udev/rules.d/85-qhy.rules |
| 57 | + |
| 58 | +rm -f /etc/udev/rules.d/85-qhy.rules |
| 59 | + |
| 60 | +rm -f /lib/udev/rules.d/85-qhyccd.rules |
| 61 | + |
| 62 | +rm -f /etc/udev/rules.d/85-qhyccd.rules |
| 63 | + |
| 64 | +rm -f /sbin/fxload |
| 65 | + |
| 66 | +rm -rf /usr/local/cmake_modules |
| 67 | + |
| 68 | +rm -f /usr/local/doc/HowTo_QHYCCD_SDK_CrossPlatform.pdf |
| 69 | + |
| 70 | +rm -rf /usr/local/fx3load |
| 71 | + |
| 72 | +rm -f /usr/local/include/config.h |
| 73 | +rm -f /usr/local/include/qhyccd*.h |
| 74 | + |
| 75 | +rm -f /usr/local/lib/libqhyccd* |
| 76 | +rm -rf /lib/firmware/qhy/* |
| 77 | + |
| 78 | +rm -rf /usr/local/testapp/* |
| 79 | + |
| 80 | +rm -f /usr/local/udev/85-qhyccd.rules |
| 81 | + |
| 82 | +rm -f /usr/local/udev/85-qhy.rules |
| 83 | + |
| 84 | +rm -f /usr/share/usb/a3load.hex |
0 commit comments