Skip to content

Commit

Permalink
Merge pull request #16 from OSDLabs/dev
Browse files Browse the repository at this point in the history
Bug fixes!
  • Loading branch information
utkarshme authored Feb 20, 2017
2 parents 6e7625c + 172f469 commit 7ced490
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bitsnetrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Set defaults here
username="f2015022"
password="myPass"
login_url="https://10.1.0.10:8090/httpclient.html"
username='f2015022'
password='myPass'
login_url='https://10.1.0.10:8090/httpclient.html'
8 changes: 7 additions & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if ! which nmcli > /dev/null ; then
fi

# Copy config file to the right place
if ! which bitsnet > /dev/null ; then
if ! ls -a ~ | grep .bitsnetrc > /dev/null ; then
cp ./bitsnetrc ~/.bitsnetrc
fi

Expand All @@ -31,5 +31,11 @@ cp ./bitsnet ~/.local/bin/bitsnet
# Create a desktop file
cp ./bitsnet.desktop ~/.local/share/applications/bitsnet.desktop

# Set to autostart
if [ ! -d ~/.config/autostart ]; then
mkdir -p ~/.config/autostart
fi
ln -sf ~/.local/share/applications/bitsnet.desktop ~/.config/autostart/bitsnet.desktop

# Create a man page
# To Be Done
4 changes: 4 additions & 0 deletions util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ function debug_msg {
function extract_msg {
reply="${reply##*\<message><\![CDATA[}"
reply=$(echo "$reply" | cut -d']' -f1)
if [[ "$reply" == "" ]];
then
reply="Cannot connect to BITSnet"
fi
echo $reply
}

Expand Down

0 comments on commit 7ced490

Please sign in to comment.