File: postinst

package info (click to toggle)
device3dfx 2007.02.06-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 128 kB
  • ctags: 131
  • sloc: ansic: 735; makefile: 227; sh: 74
file content (20 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

#DEBHELPER#

DEVICE=/dev/3dfx

if test ! -e /dev/.devfsd -a ! -c $DEVICE; then
  cd /dev
  if MAKEDEV 3dfx; then
    echo "MAKEDEV made device: $DEVICE"
  else
    printf "Making device: $DEVICE"
    mknod $DEVICE c 107 0
    chown root:video $DEVICE
    chmod 0660 $DEVICE
    echo " done."
  fi
fi