#!/bin/sh
rm /usr/lib/hildon-desktop/advifswlib
update-sudoers

DISABLED_DIR=/usr/share/applications/hildon-status-menu/disabled

if [ -f $DISABLED_DIR/connui-bluetooth.desktop ]; then 
  mv $DISABLED_DIR/connui-bluetooth.desktop $DISABLED_DIR/../
fi

PLUGINS_CONFIG=/etc/hildon-desktop/status-menu.plugins
if [ -f $PLUGINS_CONFIG.ais ]; then 
  rm $PLUGINS_CONFIG.ais
fi
sed -i 's/advanced-interface-switcher\.desktop/connui-bluetooth\.desktop/g' $PLUGINS_CONFIG
exit 0
