apcupsd: remove old fix

master
Francois-Xavier Coudert 2020-11-20 00:02:43 +01:00 committed by FX Coudert
parent 8cee6e4b5b
commit 7e8e04ca78
1 changed files with 1 additions and 11 deletions

View File

@ -53,7 +53,7 @@ class Apcupsd < Formula
end
def caveats
s = <<~EOS
<<~EOS
For #{name} to be able to communicate with UPSes connected via USB,
the kernel extension must be installed by the root user:
@ -61,20 +61,12 @@ class Apcupsd < Formula
sudo chown -R root:wheel /System/Library/Extensions/ApcupsdDummy.kext
sudo touch /System/Library/Extensions/
EOS
if MacOS.version >= :el_capitan
s += <<~EOS
Note: On OS X El Capitan and above, the kernel extension currently
does not work as expected.
You will have to unplug and plug the USB cable back in after each
reboot in order for #{name} to be able to connect to the UPS.
EOS
end
s += <<~EOS
To load #{name} at startup, activate the included Launch Daemon:
sudo cp #{prefix}/lib/Library/LaunchDaemons/org.apcupsd.apcupsd.plist /Library/LaunchDaemons
@ -87,8 +79,6 @@ class Apcupsd < Formula
sudo launchctl unload -w /Library/LaunchDaemons/org.apcupsd.apcupsd.plist
sudo rm /Library/LaunchDaemons/org.apcupsd.apcupsd.plist
EOS
s
end
test do