diff options
author | Joachim Fasting <joachifm@users.noreply.github.com> | 2016-04-23 18:05:05 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@users.noreply.github.com> | 2016-04-23 18:05:05 +0200 |
commit | fc7c7d63326b17816ea07950476cb119a17392ba (patch) | |
tree | 730600d47c24ee9aa60966aca6eab0c2001b8a80 /nixos/modules | |
parent | a1b39b9990f2c23f31875a5993441ea686885df3 (diff) | |
parent | 788122c3c5dcd146f65fbd587972b22f5ff8481e (diff) | |
download | nixlib-fc7c7d63326b17816ea07950476cb119a17392ba.tar nixlib-fc7c7d63326b17816ea07950476cb119a17392ba.tar.gz nixlib-fc7c7d63326b17816ea07950476cb119a17392ba.tar.bz2 nixlib-fc7c7d63326b17816ea07950476cb119a17392ba.tar.lz nixlib-fc7c7d63326b17816ea07950476cb119a17392ba.tar.xz nixlib-fc7c7d63326b17816ea07950476cb119a17392ba.tar.zst nixlib-fc7c7d63326b17816ea07950476cb119a17392ba.zip |
Merge pull request #14883 from grahamc/graceful-facetimehd-module-unload
facetimehd: Only unload module if it is loaded
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/hardware/video/webcam/facetimehd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/hardware/video/webcam/facetimehd.nix b/nixos/modules/hardware/video/webcam/facetimehd.nix index 309cedca48ba..2a2fcf3057d4 100644 --- a/nixos/modules/hardware/video/webcam/facetimehd.nix +++ b/nixos/modules/hardware/video/webcam/facetimehd.nix @@ -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 |