Reply
Byte
tomas123
Posts: 5
Registered: ‎05-16-2012
0
Accepted Solution

how to activate a autologin in my home wlan (i.e. Satellite connect to Internet)

[ Edited ]

I succesfull activated the webdav server http://forums.seagate.com/t5/GoFlex-Satellite/WebDav-working-mini-guide/td-p/155327 and now I can login in the GoFlex Satellite over

 

the first wlan: http://172.25.0.1/static/Data/1/

and my second home wlan-ip http://192.168.xx.yy/static/Data/1/

 

I also can access the GoFlex Media site over my home wlan : http://192.168.xx.yy

All works great!

 

Question: How can I activate a autologin in my home wlan after startup the GoFlex Satellite? (i.e. Satellite connect to Internet)

 

It's a long way round for my notebook to change to the GoFlex Satellite WLAN for switching-on the internet access and then go back to my home wlan...

Byte
tomas123
Posts: 5
Registered: ‎05-16-2012
0

Re: how to activate a autologin in my home wlan (i.e. Satellite connect to Internet)

ok, I found this thread
http://forums.seagate.com/t5/GoFlex-Satellite/Join-GoFlex-to-another-network/m-p/116484/highlight/tr...

now I must write a wrapper for:

/home/wlan/wlarm join <my wireless network>

 



Byte
tomas123
Posts: 5
Registered: ‎05-16-2012
0

Re: how to activate a autologin in my home wlan (i.e. Satellite connect to Internet)

[ Edited ]

it's works - autologin in home wlan is simple

first scan your wlan with
# /home/wlan/scanExtractor.py -f

now you find the scanresult in

# cat /tmp/rawScanResult
then login with (Encryption = 4)
# /home/connect.sh "mySSID" 4 "myPassphrase"

I simple wrote a script in rc5.d
# cat /etc/rc5.d/S99wlan.sh

#! /bin/sh
/home/wlan/scanExtractor.py -f
# scan result see /tmp/rawScanResult
/home/connect.sh "mySSID" 4 "myPassphrase"

don't forget

# chmod 755 /etc/rc5.d/S99wlan.sh

# reboot

 

if you are afraid then first use the Web-GUI for login in your wlan

and then see the result here

# cat /tmp/last_successful_connection    

successful_ssid="myssid"
successful_enc=4
successful_pass="9999999999999999"
successful_channel=4

 -------------------------

here is a sample for a better start script for mutiple wlan account

#cat /etc/rc5.d/S99wlan.sh

#! /bin/sh

case "$1" in
   start)
       echo "scan wlan"
       /home/wlan/scanExtractor.py -f         
       
       grep -q 'MYSSID' /tmp/rawScanResult
       if [[ $? -eq 0 ]] ; then 
           echo "connect to wlan"
           /home/connect.sh MYSSID 4 9999999999999
       fi
       ;;
   stop)
       echo "do nothing"
       ;;
   *)
       echo "Usage: /etc/rc5.d/S99wlan.sh {start|stop}"
       exit 1
   esac
        
exit 0

 

Visitor
slowrey
Posts: 1
Registered: ‎08-04-2012
0

Re: how to activate a autologin in my home wlan (i.e. Satellite connect to Internet)

Could you elaborate how the improve script can be used with multiple networks?

Byte
tomas123
Posts: 5
Registered: ‎05-16-2012
0

Re: how to activate a autologin in my home wlan (i.e. Satellite connect to Internet)

here is my simple working script for two networks (SSID1 ans SSID2)

 

# cat /etc/rc5.d/S99wlan.sh

 

#! /bin/sh

case "$1" in
   start)
       echo "scan wlan"
       /home/wlan/scanExtractor.py -f

       grep -q 'SSID1' /tmp/rawScanResult
       if [[ $? -eq 0 ]] ; then
           echo "connect to wlan"
           /home/connect.sh SSID1 4 1234567901234567
           exit 1
       fi

       grep -q 'SSID2' /tmp/rawScanResult
       if [[ $? -eq 0 ]] ; then
           echo "connect to wlan"
           /home/connect.sh SSID2 3 1234567901234567
           exit 1
       fi
       ;;
   stop)
       echo "do nothing"
       ;;
   *)
       echo "Usage: /etc/rc5.d/S99wlan.sh {start|stop}"
       exit 1
   esac

exit 0