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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl

$ENV{'PATH'}="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin";
$BIN="/usr/sbin/joystick-device-check";
$NAME="joystick";
$DESC="the joystick device check";

exit 0 if (!-x $BIN);

$_=$ARGV[0];
if(/start/){
   print "Starting $DESC: ";
   require $BIN;
   exit 0;
} elsif (/(stop)|(reload)|restart|force-reload/) {
   exit 0;
}
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
print "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}\n";
exit 1;