Graham Christensen 788122c3c5 facetimehd: Only unload module if it is loaded
The pre-sleep service exits if any command fails. Unloading facetimehd
without it being loaded blocks subsequent commands from running.

Note: `modprobe -r` works a bit better when unloading unused modules,
and is preferrable to `rmmod`. However, the facetimehd module does not
support suspending. In this case, it seems preferable to forcefully
unload the module. `modprobe` does not support a `--force` flag when
removing, so we are left with `rmmod`.

See:
 - https://github.com/NixOS/nixpkgs/pull/14883
 - https://github.com/patjak/bcwc_pcie/wiki#known-issues
2016-04-23 09:37:01 -05:00
..
2016-04-20 20:57:02 +02:00
2016-04-14 23:03:36 -07:00
2016-04-18 14:20:49 +02:00
2016-04-18 14:20:49 +02:00
2016-04-15 17:25:32 +01:00
2016-04-22 10:42:31 +03:00
2016-04-22 03:58:07 +02:00