diff options
-rwxr-xr-x | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index 95dccb9cae1..ec2c244bced 100755 --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts @@ -81,6 +81,12 @@ remove_rcsd_link=1 if $pm_installed; then case $pm in "ipk") + if `flock --wait 30 /run/opkg.lock` ; + then + echo "opkg_lock succeeded. Proceed..." + else + echo "opkg_lock failed. Returned an error" + fi eval opkg configure $append_log ;; |