Merge pull request #14883 from grahamc/graceful-facetimehd-module-unload

facetimehd: Only unload module if it is loaded
This commit is contained in:
Joachim Fasting 2016-04-23 18:05:05 +02:00
commit fc7c7d6332

View File

@ -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