Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

22 rader
568 B

  1. #!/bin/bash
  2. if [ "$(id -u)" -eq 0 ]
  3. then
  4. service log2zram stop
  5. systemctl disable log2zram
  6. rm /etc/systemd/system/log2zram.service
  7. rm /usr/local/bin/log2zram/log2zram
  8. rm /etc/log2zram.conf
  9. rm /etc/cron.hourly/log2zram
  10. rm /etc/logrotate.d/log2zram
  11. sudo sed -i '/olddir.*/d' /etc/logrotate.conf
  12. if [ -d /var/hdd.log ]; then
  13. rm -r /var/hdd.log
  14. fi
  15. echo "Log2Zram is uninstalled, removing the uninstaller in progress"
  16. rm -rf /usr/local/bin/log2ram
  17. echo "##### Reboot isn't needed #####"
  18. else
  19. echo "You need to be ROOT (sudo can be used)"
  20. fi