25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

uninstall.sh 368 B

12345678910111213141516171819
  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. if [ -d /var/hdd.log ]; then
  11. rm -r /var/hdd.log
  12. fi
  13. echo "##### Reboot isn't needed #####"
  14. else
  15. echo "You need to be ROOT (sudo can be used)"
  16. fi