Package: joystick
Version: 20051019-7
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
yeah, policy dictates that it should behave a bit more rationally.
patch attached :)
- -- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages joystick depends on:
ii libc6 2.9-13 GNU C Library: Shared libraries
ii libsdl1.2debian 1.2.13-4+b1 Simple DirectMedia Layer
Versions of packages joystick recommends:
pn evtest <none> (no description available)
pn inputattach <none> (no description available)
joystick suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFKZW2EynjLPm522B0RAjBGAJ9AmX83jh06ECakUcsE8/xbKIXVMACeIO7u
jgVuvhTu5kTFjQ1BZ7l2jKU=
=pkTS
-----END PGP SIGNATURE-----
--- /etc/init.d/joystick.old 2009-07-21 09:23:48.000000000 +0200
+++ /etc/init.d/joystick 2009-07-21 09:24:59.000000000 +0200
@@ -27,13 +27,13 @@
log_daemon_msg "Restoring joystick calibration"
if [ ! -c /dev/input/js0 ]; then
log_progress_msg "no joysticks available"
- log_end_msg 1
- exit 1
+ log_end_msg 0
+ exit 0
fi
if [ ! -f /var/lib/joystick/joystick.state ]; then
log_progress_msg "no calibration data"
- log_end_msg 1
- exit 1
+ log_end_msg 0
+ exit 0
fi
for js in /dev/input/js*; do
settings=$(grep $js /var/lib/joystick/joystick.state)
@@ -50,8 +50,8 @@
log_daemon_msg "Storing joystick calibration"
if [ ! -c /dev/input/js0 ]; then
log_progress_msg "no joysticks available"
- log_end_msg 1
- exit 1
+ log_end_msg 0
+ exit 0
fi
if [ ! -d /var/lib/joystick ]; then mkdir -p /var/lib/joystick; fi
> /var/lib/joystick/joystick.state