/home/user/isslogin.sh * * com.nokia.icd status_changed * WLAN_INFRA
#!/bin/bash USER='--my university username--' PASS='--my university password--' IP=$(ifconfig wlan0 | grep "inet addr" | cut -d : -f 2 | awk '{print $1}') #echo $* >>/home/user/dbus if [ $5 = "d49d3--my university network ID--3e410" -a $7 = "CONNECTED" ]; then wget --no-check-certificate --post-data '_FORM_SUBMIT=1&which_form=reg&destination=http%3A%2F%2Fgoogle.com%2F&source='$IP'&error=&bs_name='$USER'&bs_password='$PASS https://--network login URL--.pl -O /dev/null fi