summaryrefslogtreecommitdiff
path: root/pcr/python-steamcontroller-git/steamcontroller.install
blob: 9b03e18d741f9e4aa95a70c7a9afedae5221118f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
__GROUP="games"
post_install() {
  getent group ${__GROUP} >> /dev/null || /usr/sbin/groupadd ${__GROUP} || return 1
  /bin/cat <<EOF
==> Please add all users that will be running Steam to the "${__GROUP}" group
EOF
  udevadm control --reload
  /bin/cat <<EOF
==> Install either "steam" or "steamcontroller-udev" for the udev rules.
==> You can use the controller in xbox360 mode or desktop mode
    $ sc-xbox.py start
==> or
    $ sc-desktop.py start
EOF
}

post_upgrade() {
  post_install
}

post_remove() {
  getent group $__{GROUP}  &>/dev/null && /usr/sbin/groupdel ${__GROUP}
}