mirror of
https://github.com/erpalma/throttled.git
synced 2026-01-28 03:14:21 +01:00
Ignore error if old lenovo_fix file is not present
This commit is contained in:
parent
c312df3d7e
commit
8ed6e277cf
|
|
@ -35,7 +35,7 @@ fi
|
|||
if pidof systemd 2>&1 1>/dev/null; then
|
||||
echo "Copying systemd service file"
|
||||
cp systemd/throttled.service /etc/systemd/system
|
||||
rm /etc/systemd/system/lenovo_fix.service >/dev/null 2>&1
|
||||
rm -f /etc/systemd/system/lenovo_fix.service >/dev/null 2>&1
|
||||
elif pidof runit 2>&1 1>/dev/null; then
|
||||
echo "Copying runit service file"
|
||||
cp -R runit/throttled /etc/sv/
|
||||
|
|
@ -43,7 +43,7 @@ elif pidof runit 2>&1 1>/dev/null; then
|
|||
elif pidof openrc-init 2>&1 1>/dev/null; then
|
||||
echo "Copying OpenRC service file"
|
||||
cp -R openrc/throttled /etc/init.d/throttled
|
||||
rm /etc/init.d/lenovo_fix >/dev/null 2>&1
|
||||
rm -f /etc/init.d/lenovo_fix >/dev/null 2>&1
|
||||
chmod 755 /etc/init.d/throttled
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue