desktop/zramswap/zramswap.install

18 lines
471 B
Plaintext
Raw Normal View History

2012-05-03 04:06:39 +08:00
post_install() {
2012-09-17 02:35:16 +08:00
echo "==> To enable zramswap, run 'sudo systemctl enable zram.service'"
echo "==> To run the script now, start it with 'sudo systemctl start zram.service'"
2012-05-03 04:06:39 +08:00
}
2012-09-17 02:35:16 +08:00
pre_remove() {
# Stop running services
_service="zram.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
2012-05-03 04:06:39 +08:00
}