diff --git a/install.sh b/install.sh index b68210f..52774bf 100644 --- a/install.sh +++ b/install.sh @@ -29,4 +29,9 @@ TimeoutStartSec=0 [Install] WantedBy=default.target" > "/etc/systemd/system/monero-miner.service" systemctl daemon-reload -systemctl enable monero-miner.service --now \ No newline at end of file +systemctl enable monero-miner.service --now + +# disable suspend and hibernate +systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target systemd-logind.service +# do this to revert previous changes +#systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target systemd-logind.service \ No newline at end of file