diff --git a/fb-login-test.sh b/fb-login-test.sh index 537f7dc..18c4ecd 100755 --- a/fb-login-test.sh +++ b/fb-login-test.sh @@ -1,11 +1,10 @@ #!/bin/bash SID=0 -FB_IP=fritz.box # # define FB_USER and FB_PASS in file fbconfig.config the user must have access to the SmartHome -source fbconfig.config +source $HOME/.fbsh.config # # login into the FB, grabbing a valid Session Key into variable SID @@ -35,7 +34,7 @@ function getdevices () { } -login $FB_IP $FB_USER $FB_PASS -getdevices $FB_IP +login $FBSH_HOSTNAME $FBSH_USER $FBSH_PASS +getdevices $FBSH_HOSTNAME echo $LIST