Browse Source

Exit if cjdns service does not start

Bob Mottram 10 years ago
parent
commit
0d60689364
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      install-freedombone.sh

+ 4
- 0
install-freedombone.sh View File

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