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

22 行
565 B

  1. #!/usr/bin/env sh
  2. if [ "$(id -u)" -eq 0 ]
  3. then
  4. service log2ram stop
  5. systemctl disable log2ram
  6. rm /etc/systemd/system/log2ram.service
  7. rm /usr/local/bin/log2ram/log2ram
  8. rm /etc/log2ram.conf
  9. rm /etc/cron.hourly/log2ram
  10. rm /etc/logrotate.d/log2ram
  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 "Log2Ram 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