Exit if cjdns service does not start

This commit is contained in:
Bob Mottram 2015-01-11 14:55:18 +00:00
parent 648ffe4dad
commit 0d60689364
1 changed files with 4 additions and 0 deletions

View File

@ -781,6 +781,10 @@ function install_cjdns {
chmod +x /etc/init.d/cjdns
update-rc.d cjdns defaults
service cjdns start
if [ ! "$?" = "0" ]; then
systemctl status cjdns.service
exit 8260
fi
if ! grep -q "Mesh Networking" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README