summarylogtreecommitdiffstats
path: root/install
blob: 5e92dbe8d3f5083ae247df7242b739f7dcad9306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
    ## Load uinput if it's unloaded
    /usr/bin/grep -q 'uinput' /proc/modules
    if [ ! $? -eq 0 ] && [ -d "/lib/modules/$(uname -r)" ]
        then
            /usr/bin/modprobe uinput
    fi

    ## reload udev rules
    /usr/bin/udevadm control --reload-rules
}

post_upgrade() {
    /usr/bin/udevadm control --reload-rules
}

post_remove() {
    post_upgrade
}