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

1234567891011121314151617181920
  1. #!/bin/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
  8. rm /etc/log2ram.conf
  9. rm /etc/cron.hourly/log2ram
  10. rm /etc/logrotate.d/log2ram
  11. if [ -d /var/hdd.log ]; then
  12. rm -r /var/hdd.log
  13. fi
  14. echo "##### Reboot isn't needed #####"
  15. else
  16. echo "You need to be ROOT (sudo can be used)"
  17. fi