您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

28 行
667 B

  1. #!/usr/bin/env sh
  2. if dpkg -l log2ram ; then
  3. echo "Please run : apt remove log2ram"
  4. exit 1
  5. fi
  6. if [ "$(id -u)" -eq 0 ]
  7. then
  8. echo "Not apt installed. Remove will continue with this script..."
  9. service log2ram stop
  10. systemctl disable log2ram
  11. rm /etc/systemd/system/log2ram.service
  12. rm /usr/local/bin/log2ram
  13. rm /etc/log2ram.conf
  14. rm /etc/cron.daily/log2ram
  15. rm /etc/logrotate.d/log2ram
  16. if [ -d /var/hdd.log ]; then
  17. rm -r /var/hdd.log
  18. fi
  19. echo "Log2Ram is uninstalled, removing the uninstaller in progress"
  20. rm /usr/local/bin/uninstall-log2ram.sh
  21. echo "##### Reboot isn't needed #####"
  22. else
  23. echo "You need to be ROOT (sudo can be used)"
  24. fi