Revert "Merge pull request #14926 from grahamc/graceful-facetimehd-module-unload-16.03"

This reverts commit 71916459a3, reversing
changes made to 9d1662c6c9.

I noticed too late that this does not use kmod, like its counterpart on master.
See https://github.com/NixOS/nixpkgs/issues/14885
This commit is contained in:
Joachim Fasting 2016-04-23 18:24:18 +02:00
parent 71916459a3
commit 5740226f88
No known key found for this signature in database
GPG Key ID: 4330820E1E04DCF4

View File

@ -31,7 +31,7 @@ in
# unload module during suspend/hibernate as it crashes the whole system
powerManagement.powerDownCommands = ''
${pkgs.module_init_tools}/bin/lsmod | ${pkgs.gnugrep}/bin/grep -q "^facetimehd" && ${pkgs.module_init_tools}/bin/rmmod -f -v facetimehd
${pkgs.module_init_tools}/bin/rmmod -f facetimehd
'';
# and load it back on resume