#!/bin/sh

#### Script to disable IPv6 PDP context and set down IPv6 GPRS Interface ####
#                                                                           #
#    Authors: Fuad Abinader (ext-fuad.junior@nokia.com)                     #
#             Vinicius Pinto (ext-vinicius.pinto@nokia.com)                 #
#             Teemu Savolainen (teemu.savolainen@nokia.com)                 #
#    Company: INdT - Instituto NOKIA de Tecnologia                          #
#    Date: 05/10/2010                                                       #
#    Realease: 1.3                                                          #
#                                                                           #
#############################################################################

# Only disconnect if closing bearer is GPRS as well
if [ $ICD_CONNECTION_TYPE ]; then
if [ $ICD_CONNECTION_TYPE == "GPRS" ]; then

# Disconnect GPRS context
/usr/bin/dbus-send --system --print-reply --dest=com.nokia.csd /com/nokia/csd/gprs/1 com.nokia.csd.GPRS.Context.Disconnect

# Delete GPRS context
/usr/bin/dbus-send --system --print-reply --dest=com.nokia.csd /com/nokia/csd/gprs/1 com.nokia.csd.GPRS.Context.Delete

fi
fi
