blob: 32dfd81e9e3a94397a82adbafa66cb7a164df9e7 (
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
|
pre_remove() {
egpu-switcher disable
}
post_install() {
egpu-switcher enable --no-prompt
}
pre_upgrade() {
egpu-switcher cleanup
}
post_upgrade() {
# TODO remove this warning
major=$(cut -d'.' -f1 <<< $1 | cut -c2-)
minor=$(cut -d'.' -f2 <<< $1)
if [ $major -eq '0' -a $minor -lt 18 ]; then
echo "========"
echo "BREAKING UPDATE: You seem to update from the legacy version, please run the setup again"
echo "========"
fi
egpu-switcher enable --no-prompt
}
|