#!/bin/bash
# Script: wifishell.sh
# Object: Starts TCP/IP Console
# for S60 mobiles afterwards
# start wifishell.py on your
# S60

IP=$(ifconfig | grep 'inet '| grep -v '127\.0\.0\.1' | cut -d: -f2 | awk '{ print $1}')
PORT="1025"

echo "Your IP address is: $IP "
echo "Start now wifishell.py on your phone ..."

stty raw -echo ; nc -l 1025 ; stty sane
