Fixing zeronet

This commit is contained in:
Bob Mottram 2015-08-29 18:01:31 +01:00
parent 2d7007c191
commit fdbfd3834c
2 changed files with 2 additions and 2 deletions

View File

@ -375,7 +375,7 @@ if [ ! $peer_index ]; then
fi fi
if [[ $peer_index == 1 ]]; then if [[ $peer_index == 1 ]]; then
cd ZERONET_DIR cd $ZERONET_DIR
zeronetavahi zeronetavahi
python zeronet.py & python zeronet.py &
if which xdg-open > /dev/null; then if which xdg-open > /dev/null; then

View File

@ -44,7 +44,7 @@ if [ ! -d /etc/avahi ]; then
fi fi
TEMPFILE=/tmp/tmpzeronetavahi.txt TEMPFILE=/tmp/tmpzeronetavahi.txt
avahi-browse -atrl | grep "Workstation\|hostname =\|address =\|port =" > $TEMPFILE avahi-browse -atr | grep "Workstation\|hostname =\|address =\|port =" > $TEMPFILE
if [ ! -f $TEMPFILE ]; then if [ ! -f $TEMPFILE ]; then
exit 1 exit 1
fi fi