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

2 by Edward Betts
* debian/control: updated Standards-Version.
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;