blob: c563ae7118e5ec17bd543288cf37d837d6910b20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
_sysroots=/opt/azurespheresdk/Sysroots
post_upgrade() {
echo "Installing toolchains"
for _sysroot in `ls ${_sysroots}`; do
${_sysroots}/${_sysroot}/tools/exp23-appsdk-linux-blanca.sh \
-d ${_sysroots}/${_sysroot}/tools/ -y > /dev/null
done
cat <<EOT
Add users who should manage 'azsphere' devices to
the 'azsphere' group with:
# usermod -a -G azsphere USERNAME
EOT
}
post_install() {
post_upgrade
}
pre_remove() {
for _sysroot in `ls ${_sysroots}`; do
rm -rf ${_sysroots}/${_sysroot}/tools/sysroots
rm -rf ${_sysroots}/${_sysroot}/tools/*musleabi
done
}
|