#!/bin/sh
    chmod -x /opt/pykake/pykake.py
    chmod -R a=rx /opt/pykake/
    sed -i '/pyKake/ d' /etc/lircd.conf
    sed -i '/pykake/ d' /etc/lircd.conf
    echo "# Lirc configure files for pyKake" >> /etc/lircd.conf
    echo "include \"/opt/pykake/cameras/canon/RC-1\"" >> /etc/lircd.conf
    echo "include \"/opt/pykake/cameras/nikon/ML-L3\"" >> /etc/lircd.conf
    echo "include \"/opt/pykake/cameras/olympus/RM-1\"" >> /etc/lircd.conf
    echo "include \"/opt/pykake/cameras/pentax/RC-F\"" >> /etc/lircd.conf
    /etc/init.d/lirc start
    /etc/init.d/lirc reload
    /etc/init.d/lirc stop
    /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor
    run-standalone.sh zenity --info --text="If this is first time you install pyKake, it is possible that device reboot is needed before pyKake can send infrared signals. To test this, put your camera in live view mode, aim the device to the camera and press shutter button in pyKake, if you don't se light plinking in infrared port, you need to reboot."
    