Hi,
i wanted the EZ-Setup button of my router to start and stop mpd. But kmod-diag don't understand the gpio dev as written here. (Please correct me if i'm wrong, my version of Kamikaze is ~6 month old)

So i searched for some code to read the button status, created a little program that pulls the status and executes a script. Here is the package containing the code plus the package definition. And this is a script to start/stop mpd:

[ -f /hd0/stream/mpd.pid ] && MPDPID=`cat /hd0/stream/mpd.pid`
if [ -f /proc/$MPDPID/cmdline ] && [ "`cat /proc/$MPDPID/cmdline`" = "mpd" ]; th
en
  OPT="--kill"                                                                  
  
fi            
mpd $OPT