mirror of
https://github.com/erpalma/throttled.git
synced 2026-03-20 03:34:38 +01:00
fix #126
This commit is contained in:
parent
fe93e48c8e
commit
2b73d324af
|
|
@ -3,12 +3,12 @@
|
|||
INSTALL_DIR="/opt/lenovo_fix"
|
||||
|
||||
if pidof systemd 2>&1 1>/dev/null; then
|
||||
systemctl stop lenovo_fix.service &>/dev/null
|
||||
systemctl stop lenovo_fix.service >/dev/null 2>&1
|
||||
elif pidof runit 2>&1 1>/dev/null; then
|
||||
sv down lenovo_fix &>/dev/null
|
||||
sv down lenovo_fix >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
mkdir -p "$INSTALL_DIR" &>/dev/null
|
||||
mkdir -p "$INSTALL_DIR" >/dev/null 2>&1
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
|
|
|||
Loading…
Reference in a new issue