1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash # unload rts5227 before suspend, reload afterwards case $1 in pre) rmmod rts5227 ;; post) modprobe rts5227 ;; esac