summarylogtreecommitdiffstats
path: root/suspend-modules
blob: 17b2118f4690c2fd9c8c92679f8ab48dee2a2761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

case $1 in
    pre)
        for mod in $(</etc/suspend-modules.conf); do
            rmmod $mod
        done
    ;;
    post)
        for mod in $(</etc/suspend-modules.conf); do
            modprobe $mod
        done
    ;;
esac