aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorMarkus Reiter2016-11-18 22:53:25 +0100
committerMarkus Reiter2016-11-19 01:53:26 +0100
commit1834457272a925e526a0493063229a9c47255d0a (patch)
tree25f49c5420f0520b5fded7511e607c7f074bbe2e /Library/Homebrew/cask/lib
parent7853406fb40f9b2785cef805e6f9a19183ae3017 (diff)
downloadbrew-1834457272a925e526a0493063229a9c47255d0a.tar.bz2
Remove kernel extensions specified in `uninstall :kext`.
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb b/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb
index e76561e92..6d4d329ec 100644
--- a/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb
+++ b/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb
@@ -187,6 +187,10 @@ module Hbc
@command.run!("/sbin/kextunload", args: ["-b", kext], sudo: true)
sleep 1
end
+ @command.run!("/usr/sbin/kextfind", args: ["-b", kext], sudo: true).stdout.chomp.lines.each do |kext_path|
+ ohai "Removing kernel extension #{kext_path}"
+ @command.run!("/bin/rm", args: ["-rf", kext_path], sudo: true)
+ end
end
end