@@ -127,8 +127,9 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |||
|
127 | 127 | install_readonly "${R}/tmp/pi-bluetooth/debian/pi-bluetooth.bthelper@.service" "${ETC_DIR}/systemd/system/pi-bluetooth.bthelper@.service" |
|
128 | 128 | install_readonly "${R}/tmp/pi-bluetooth/debian/pi-bluetooth.hciuart.service" "${ETC_DIR}/systemd/system/pi-bluetooth.hciuart.service" |
|
129 | 129 | |
|
130 |
# Remove temporary director |
|
|
130 | # Remove temporary directories | |
|
131 | 131 | rm -fr "${temp_dir}" |
|
132 | rm -fr "${R}"/tmp/pi-bluetooth | |
|
132 | 133 | |
|
133 | 134 | # Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore UART0/ttyAMA0 over GPIOs 14 & 15. Slow Bluetooth and slow cpu. Use /dev/ttyS0 instead of /dev/ttyAMA0 |
|
134 | 135 | if [ "$ENABLE_MINIUART_OVERLAY" = true ] ; then |
@@ -50,4 +50,7 if [ "$ENABLE_VIDEOCORE" = true ] ; then | |||
|
50 | 50 | |
|
51 | 51 | #back to root of scriptdir |
|
52 | 52 | cd "${WORKDIR}" |
|
53 | ||
|
54 | # Remove videocore sources | |
|
55 | rm -fr "${R}"/tmp/userland/ | |
|
53 | 56 | fi |
@@ -101,4 +101,7 if [ "$ENABLE_NEXMON" = true ] && [ "$ENABLE_WIRELESS" = true ]; then | |||
|
101 | 101 | #Revert to previous directory |
|
102 | 102 | cd "${WORKDIR}" || exit |
|
103 | 103 | |
|
104 | # Remove nexmon sources | |
|
105 | rm -fr "${NEXMON_ROOT}" | |
|
106 | ||
|
104 | 107 | fi |
@@ -4,6 +4,17 | |||
|
4 | 4 | cleanup (){ |
|
5 | 5 | set +x |
|
6 | 6 | set +e |
|
7 | ||
|
8 | # Remove exports from nexmon | |
|
9 | unset KERNEL | |
|
10 | unset ARCH | |
|
11 | unset SUBARCH | |
|
12 | unset CCPLUGIN | |
|
13 | unset ZLIBFLATE | |
|
14 | unset Q | |
|
15 | unset NEXMON_SETUP_ENV | |
|
16 | unset HOSTUNAME | |
|
17 | unset PLATFORMUNAME | |
|
7 | 18 | |
|
8 | 19 | # Identify and kill all processes still using files |
|
9 | 20 | echo "killing processes using mount point ..." |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant