#!/bin/sh

CONFIG=/home/user/.config/conler.xml

#/bin/ln -s /usr/bin/conler-cli /etc/network/if-up.d/conler
if [ ! -e $CONFIG ]; then
echo """<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!-- Please, don't edit this file manually, use 'conler-gui' tool instead -->
<conler-config>
 <access-points>
   <access-point name=\"home\" disabled=\"true\">
     <commands>
       <command>/usr/local/bin/start-firewall -rule home</command>
     </commands>
   </access-point>
 </access-points>
</conler-config>
""" > $CONFIG
    /bin/chown user:users $CONFIG
fi

/usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor

#/usr/bin/maemo-select-menu-location conler.desktop

#DEBHELPER#

exit 0
