if [ "$ICD_CONNECTION_TYPE" != GPRS ]; then exit 0 fi
#!/bin/sh if [ "$ICD_CONNECTION_TYPE" != GPRS ]; then exit 0 fi SERVER_HOST=host.to.server.org LOGGFILE=n900_ip_logg ip=`ifconfig gprs0 | awk '/inet addr/ { print $2 }' | awk -F: '{ print $2 }'` ssh -F /home/user/.ssh/config $SERVER_HOST "echo `date` $ip >> $LOGGFILE"