浏览代码

Only start tahoelafs if it's installed

Bob Mottram 7 年前
父节点
当前提交
5362393942
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      src/freedombone-image-customise

+ 3
- 1
src/freedombone-image-customise 查看文件

@@ -773,7 +773,9 @@ function mesh_client_startup_applications {
773 773
     echo '' >> $START_DESKTOP
774 774
     echo '' >> $START_DESKTOP
775 775
     echo "if [ ! -f $FIRST_BOOT ]; then" >> $START_DESKTOP
776
-    echo "  $TAHOE_COMMAND start" >> $START_DESKTOP
776
+    echo '  if [ -d /var/lib/tahoelafs ]; then' >> $START_DESKTOP
777
+    echo "    $TAHOE_COMMAND start" >> $START_DESKTOP
778
+    echo '  fi' >> $START_DESKTOP
777 779
     echo '  exit 0' >> $START_DESKTOP
778 780
     echo 'fi' >> $START_DESKTOP
779 781
     echo '' >> $START_DESKTOP