Manage D-Link DCS-960L motion detection using rfid tokens

After having presented RFIDer and after having show you a simple shell script to control motion detecion of a D-Link DCS-960L, i want to describe how to merge those two programs in order to enable/disable motion detection using rfid tokens and a rfid reader. As usually i’m using a RaspberryPI as a central unit.