#!/bin/sh
if [ "$1" == "down" ]; then
  /sbin/ifconfig gprs0 $1
  /sbin/ifconfig phonet0 $1   #/sbin/etc/init.d/csd stop
  #/etc/init.d/icd2 stop
else #up
  #/etc/init.d/icd2 start
  /sbin/ifconfig phonet0 $1   #/sbin/etc/init.d/csd start
  #/sbin/ifconfig gprs0 $1
  sleep 1
  /etc/init.d/icd2 restart
fi