~ubuntu-branches/ubuntu/breezy/joystick/breezy

« back to all changes in this revision

Viewing changes to debian/joystick.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Edward Betts
  • Date: 2001-12-26 13:32:55 UTC
  • Revision ID: james.westby@ubuntu.com-20011226133255-ks0knlw3ln1jd4d4
Tags: 20010903-2
* debian/control: updated Standards-Version.
* debian/control: added version number to debhelper Build-Depends.
* debian/copyright: improved with more text from the GPL and a description
  of changes to the package.
* debian/template: German translation from Sebastian Feltel
  <sebastian@feltel.de>. (Closes: Bug#119939)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# source debconf library
 
3
#export DEBCONF_DEBUG=developer
 
4
. /usr/share/debconf/confmodule
 
5
 
 
6
if [ "$1" = "configure" ] ; then
 
7
   db_get joystick/createdevs
 
8
   if [ "$RET" = "true" ]; then
 
9
      (cd /dev; /sbin/MAKEDEV js)
 
10
   fi
 
11
   db_get joystick/nodecheck-types
 
12
   case "$RET" in
 
13
      "check at bootup")
 
14
      # run before jslaunch
 
15
         update-rc.d joystick start 19 2 .  >/dev/null 2>&1 || true
 
16
      ;;
 
17
      "check once")
 
18
      # remove rc links, keep the script
 
19
        update-rc.d -f joystick remove .  >/dev/null 2>&1 || true
 
20
        joystick-device-check ||  true
 
21
      ;;
 
22
      *) 
 
23
        true
 
24
      ;;
 
25
   esac
 
26
fi
 
27
 
 
28
#DEBHELPER#