Trying to start rejoystick automatically from a udev rule when the joystick connects, I get a segmentation fault.
My udev rule is really simple:
rejoystick.sh goes as follows:
date >> $LOG
echo "$ACTION" >> $LOG
if [ "$ACTION" = "add" ]; then
/usr/games/rejoystick -d >> $LOG 2>&1
elif [ "$ACTION" = "remove" ]; then
/usr/bin/killall -9 rejoystick
Running the script from SSH or another tty works as expected. I only get a segmentation fault when running from udev.
PS: Nice work on rejoystick. It works great. =) I'm gonna try the java version see if that works.