mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
18 lines
483 B
Plaintext
18 lines
483 B
Plaintext
post_install() {
|
|
echo "==> To enable zramswap, run 'sudo systemctl enable zramswap.service'"
|
|
echo "==> To run the script now, start it with 'sudo systemctl start zramswap.service'"
|
|
}
|
|
|
|
pre_remove() {
|
|
# Stop running services
|
|
_service="zramswap.service"
|
|
systemctl is-active ${_service} &>/dev/null
|
|
if [[ $? -eq 0 ]] ; then
|
|
systemctl stop ${_service}
|
|
fi
|
|
systemctl is-enabled ${_service} &>/dev/null
|
|
if [[ $? -eq 0 ]] ; then
|
|
systemctl disable ${_service}
|
|
fi
|
|
}
|