Fixing zeronet
This commit is contained in:
parent
2d7007c191
commit
fdbfd3834c
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue