Delay 'security-disable' in upgrade script 38/246138/2
authorInkyun Kil <inkyun.kil@samsung.com>
Sun, 25 Oct 2020 23:23:05 +0000 (08:23 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Mon, 26 Oct 2020 06:39:28 +0000 (15:39 +0900)
- If buxton daemon is not alive, it fails.
  So should delay 'security-disable'.

Change-Id: If2363c554feb4a51ee0894ea50e8efb774ab6eee
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
scripts/290.buxton2_upgrade.sh

index e947c6d..2a897cf 100755 (executable)
@@ -13,5 +13,14 @@ buxton2ctl remove-garbage-data system
 
 systemctl start buxton2
 
+count=0
+while [ "$(systemctl is-active buxton2)" != "active" ] && [ ${count} -le 2 ];
+do
+  echo "wait"
+  sleep 1
+  count=$((count+1))
+done
+
+
 buxton2ctl security-disable