Merge branch 'master' of github.com:erpalma/lenovo-throttling-fix

This commit is contained in:
erpalma
2019-07-12 15:13:59 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ Feedback about Fedora installation is welcome.
### openSUSE ### openSUSE
User *brycecordill* reported that the following dependencies are required for installing in openSUSE, tested on openSUSE 15.0 Leap. User *brycecordill* reported that the following dependencies are required for installing in openSUSE, tested on openSUSE 15.0 Leap.
``` ```
sudo zypper install gcc python3-devel dbus-1-glib-devel python3-cairo-devel cairo-devel python3-gobject-cairo gobject-introspection-devel sudo zypper install gcc make python3-devel dbus-1-glib-devel python3-cairo-devel cairo-devel python3-gobject-cairo gobject-introspection-devel
git clone https://github.com/erpalma/lenovo-throttling-fix.git git clone https://github.com/erpalma/lenovo-throttling-fix.git
sudo ./lenovo-throttling-fix/install.sh sudo ./lenovo-throttling-fix/install.sh
``` ```

View File

@@ -3,12 +3,12 @@
INSTALL_DIR="/opt/lenovo_fix" INSTALL_DIR="/opt/lenovo_fix"
if pidof systemd 2>&1 1>/dev/null; then 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 elif pidof runit 2>&1 1>/dev/null; then
sv down lenovo_fix &>/dev/null sv down lenovo_fix >/dev/null 2>&1
fi fi
mkdir -p "$INSTALL_DIR" &>/dev/null mkdir -p "$INSTALL_DIR" >/dev/null 2>&1
set -e set -e
cd "$(dirname "$0")" cd "$(dirname "$0")"