#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
  # Purge the debconf database we no longer need.
  if [ -e /usr/share/debconf/confmodule ]; then
    . /usr/share/debconf/confmodule
    db_purge
  fi
fi

if [ ! -e /dev/vbi0 -a ! -e /dev/.devfsd ]; then
  cd /dev
  echo "creating video4linux devices in /dev..."
	/sbin/MAKEDEV video4linux
fi

#DEBHELPER#
