If mesh doesn't start then exit
This commit is contained in:
parent
1933f64df4
commit
fbe713a383
|
@ -39,6 +39,9 @@ fi
|
|||
|
||||
if [ ! -f /tmp/meshtype ]; then
|
||||
sudo batman start
|
||||
if [ ! "$?" = "0" ]; then
|
||||
exit 2
|
||||
fi
|
||||
clear
|
||||
fi
|
||||
|
||||
|
@ -86,7 +89,7 @@ done < "$PEERS_FILE"
|
|||
|
||||
if [ ! $AVAHI_DOMAIN ]; then
|
||||
echo 'No domain name'
|
||||
exit 2
|
||||
exit 3
|
||||
fi
|
||||
|
||||
# Connect to IRC
|
||||
|
@ -94,7 +97,7 @@ if [ ! -f /usr/bin/irssi ]; then
|
|||
if [ ! -f /usr/local/bin/irssi ]; then
|
||||
echo 'You need irssi installed on your system'
|
||||
sudo batman stop
|
||||
exit 3
|
||||
exit 4
|
||||
fi
|
||||
fi
|
||||
irssi -c $AVAHI_DOMAIN -p $IRC_PORT -n $USER
|
||||
|
|
Loading…
Reference in New Issue