Ubuntu Pastebin

Paste from TJ at Mon, 25 Jan 2016 00:38:00 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# save as /lib/systemd/system-sleep/10_modules
# sudo chmod 755 /lib/systemd/system-sleep/10_modules

# space-separate list of modules to (un)load

MODULES="hid_multitouch"

case "${2}" in
  suspend)
    case "${1}" in
      pre)
        for MOD in ${MODULES}; do
          modprobe -r ${MOD}
        done
        ;;
      post)
        for MOD in ${MODULES}; do
          modprobe ${MOD}
         done
         ;;
    esac
esac
Download as text