#!/bin/sh
#120131 rodin.s: internationalized.
#130505 rerwin: ensure network_tray icon shows wireless modem

export TEXTDOMAIN=pgprs-connect
export OUTPUT_CHARSET=UTF-8

ps aux | grep -q 'wvdial isp[12]' \
 || rm -f /tmp/.network_tray-use_analog_dialup_icons 2>/dev/null #130505

n="r"
while  [ "$n" = "r" ]
do
/usr/sbin/pppd call gprsmm
n="q"
echo "Exit status is $?"
echo "$(gettext 'DISCONNECTED')"
echo ""
echo "$(gettext 'Press ENTER to quit')"
echo "$(gettext 'Press r ENTER to reconnect/try again')"
read n
done
