Are you watching "/var/log/avr_evtd.log" with "tail -f"?
Ummm, I don't believe so. I don't have an avr_evtd.log file. How does one enable avr_evtd logging?
Initially, I could see events in the log, but nothing in the "/etc/avr_evtd/EventScript" file was being executed.
Turned out I had /bin/sh symlinked to /bin/dash, which doesn't support some funky scripting stuff. So had to change "#!/bin/sh" to "#!/bin/bash" at the top of EventScript.
I gave this a shot just now....no change.
Also, to help me while hacking EventScript, I used this:
3) echo -n "[avr_evtd]: Power Button Up"
echo -n "VVVV" > $DEVICE
4) echo -n "[avr_evtd]: Power Button Down"
echo -n "WWWW" > $DEVICE
Which would turn on a LED when the power button was pressed momentarily.
Tried this as well with "#!/bin/sh" and ""#!/bin/bash". Nothing. the LED didn't do anything as suggested either. So does that mean that "Eventscript" isn't even being run?
which kernels do you run guys?
Here's my relevant dmesg:
Using Buffalo Linkstation machine description
Linux version 126.96.36.199 (kuroadmin@KUROBOX) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 Thu Aug 16 13:59:11 CDT 2007
Found legacy serial port 0 for /soc10x/serial@80004500
mem=80004500, taddr=80004500, irq=0, clk=130041000, speed=9600
Found legacy serial port 1 for /soc10x/serial@80004600
mem=80004600, taddr=80004600, irq=0, clk=130041000, speed=57600
Entering add_active_range(0, 0, 32768) 0 entries of 256 used
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x80004500 (irq = 16) is a 16550A
serial8250.0: ttyS1 at MMIO 0x80004600 (irq = 17) is a 16550A
linkstation: disarming the AVR watchdog:
Thanks for any help that can be offered!