File: postinst

package info (click to toggle)
joystick 0.8.0-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 88 kB
  • ctags: 68
  • sloc: ansic: 436; makefile: 84; sh: 12
file content (19 lines) | stat: -rw-r--r-- 209 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

if [ ! -c /dev/js0 ]
then
    rm -f /dev/js0
    mknod /dev/js0 c 15 0
fi

if [ ! -c /dev/js1 ]
then
    rm -f /dev/js1
    mknod /dev/js1 c 15 1
fi

update-modules

depmod -a

# postinst ends here