taylorchu/powerdown — pull request #2 by fredmorcos (2012-07-13 11:21:57+00:00)
Title: Small improvements/suggestions

* [[ -w $file ]] in opt() for checking (1) whether a file exists and (2) whether write permission is given.
* echo ... > ... instead of echo ... | tee ... is more efficient, there is not reason for tee with a single file.
* modprobe -r instead of rmmod in unload(), the rmmod manpage states that most users should use modprobe instead.