disable amrbian-zram-config and remove armbian-ram-logging file
This commit is contained in:
parent
d642f702df
commit
8b860b5389
7
install
7
install
@ -12,6 +12,9 @@
|
|||||||
# Ideas/code used from:
|
# Ideas/code used from:
|
||||||
# https://github.com/armbian/config/blob/master/debian-software
|
# https://github.com/armbian/config/blob/master/debian-software
|
||||||
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
||||||
|
#
|
||||||
|
# version: 1.0.1
|
||||||
|
#
|
||||||
|
|
||||||
if [[ $(id -u) -ne 0 ]]; then
|
if [[ $(id -u) -ne 0 ]]; then
|
||||||
echo "This script must be executed as root or using sudo."
|
echo "This script must be executed as root or using sudo."
|
||||||
@ -217,13 +220,13 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# disable armbian log services if found
|
# disable armbian log services if found
|
||||||
for service in log2ram armbian-ramlog; do
|
for service in log2ram armbian-ramlog armbian-zram-config; do
|
||||||
if systemctl list-units --full -all | grep ${service}; then
|
if systemctl list-units --full -all | grep ${service}; then
|
||||||
systemctl stop ${service}
|
systemctl stop ${service}
|
||||||
systemctl disable ${service}
|
systemctl disable ${service}
|
||||||
rm -f /etc/cron.daily/${service}*
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
rm -f /etc/cron.daily/armbian-ram-logging
|
||||||
|
|
||||||
# install flashmemory plugin unless disabled
|
# install flashmemory plugin unless disabled
|
||||||
if [ ${skipFlash} -eq 1 ]; then
|
if [ ${skipFlash} -eq 1 ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user