#!/bin/sh

qMandCheck=`cat /usr/share/applications/hildon-status-bar/hildon-status-bar-battery.desktop | grep Mandatory`
if [ x$qMandCheck = xMandatory=true ]; then
  sed -i 's/^Mandatory/#Mandatory/' /usr/share/applications/hildon-status-bar/hildon-status-bar-battery.desktop
fi

exit 0