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

13 lines
302 B

  1. #!/usr/bin/env bash
  2. case "$1" in
  3. upgrade)
  4. [ -d /run/systemd/system/ ] && systemctl stop log2ram
  5. exit 0
  6. ;;
  7. *)
  8. [ -d /run/systemd/system/ ] && systemctl stop log2ram
  9. [ -d /run/systemd/system/ ] && systemctl disable log2ram
  10. exit 0
  11. ;;
  12. esac