2019-12-19 16:51:27 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2020-02-05 14:47:31 +01:00
|
|
|
systemctl daemon-reload
|
2020-07-02 11:49:15 +02:00
|
|
|
systemctl enable log2ram.service log2ram-daily.timer
|
2020-02-05 14:47:31 +01:00
|
|
|
|
2020-10-01 00:03:56 +02:00
|
|
|
|
|
|
|
rm -f /etc/cron.daily/log2ram
|
|
|
|
rm -f /etc/cron.hourly/log2ram
|
|
|
|
|
2020-02-05 14:47:31 +01:00
|
|
|
if [ "$1" == "configure" ]; then
|
|
|
|
echo "##### Reboot to activate log2ram #####"
|
|
|
|
echo "##### edit /etc/log2ram.conf to configure options ####"
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|