summarylogtreecommitdiffstats
path: root/lego-udev-rules.install
blob: b7e2a0c50732fc413c11b383fd9053a2f4cc7ab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
    groupadd lego

    # called explicitely as automatic reload ignores our rule because of
    # nonexistent group 'lego'
    udevadm control --reload-rules

    echo ">>> To be able to use LEGO Mindstorms NXT without having root "
    echo ">>> permissions you should add your user to 'lego' group and "
    echo ">>> relogin."
}

post_upgrade() {
    post_install
}

post_remove() {
    groupdel lego
}