Merge pull request #14883 from grahamc/graceful-facetimehd-module-unload
facetimehd: Only unload module if it is loaded
This commit is contained in:
commit
fc7c7d6332
@ -31,7 +31,7 @@ in
|
||||
|
||||
# unload module during suspend/hibernate as it crashes the whole system
|
||||
powerManagement.powerDownCommands = ''
|
||||
${pkgs.kmod}/bin/rmmod -f facetimehd
|
||||
${pkgs.kmod}/bin/lsmod | ${pkgs.gnugrep}/bin/grep -q "^facetimehd" && ${pkgs.kmod}/bin/rmmod -f -v facetimehd
|
||||
'';
|
||||
|
||||
# and load it back on resume
|
||||
|
Loading…
Reference in New Issue
Block a user