~ubuntu-branches/ubuntu/edgy/joystick/edgy

« back to all changes in this revision

Viewing changes to debian/joystick.init

  • 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
#!/usr/bin/perl
 
2
 
 
3
$ENV{'PATH'}="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin";
 
4
$BIN="/usr/sbin/joystick-device-check";
 
5
$NAME="joystick";
 
6
$DESC="the joystick device check";
 
7
 
 
8
exit 0 if (!-x $BIN);
 
9
 
 
10
$_=$ARGV[0];
 
11
if(/start/){
 
12
   print "Starting $DESC: ";
 
13
   require $BIN;
 
14
   exit 0;
 
15
} elsif (/(stop)|(reload)|restart|force-reload/) {
 
16
   exit 0;
 
17
}
 
18
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
 
19
print "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}\n";
 
20
exit 1;