diff options
| -rwxr-xr-x | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index 04ba3941bc..10f2118e96 100755 --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | |||
| @@ -16,23 +16,25 @@ pm_installed=false | |||
| 16 | for pm in $backend_list; do | 16 | for pm in $backend_list; do |
| 17 | pi_dir="#SYSCONFDIR#/$pm-postinsts" | 17 | pi_dir="#SYSCONFDIR#/$pm-postinsts" |
| 18 | 18 | ||
| 19 | [ -d $pi_dir ] && break | 19 | if [ ! -d $pi_dir ]; then |
| 20 | continue | ||
| 21 | fi | ||
| 20 | 22 | ||
| 23 | # found the package manager, it has postinsts | ||
| 21 | case $pm in | 24 | case $pm in |
| 22 | "deb") | 25 | "deb") |
| 23 | if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then | 26 | if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then |
| 24 | pm_installed=true | 27 | pm_installed=true |
| 25 | break | ||
| 26 | fi | 28 | fi |
| 27 | ;; | 29 | ;; |
| 28 | 30 | ||
| 29 | "ipk") | 31 | "ipk") |
| 30 | if [ -s "/var/lib/opkg/status" ]; then | 32 | if [ -s "#LOCALSTATEDIR#/lib/opkg/status" ]; then |
| 31 | pm_installed=true | 33 | pm_installed=true |
| 32 | break | ||
| 33 | fi | 34 | fi |
| 34 | ;; | 35 | ;; |
| 35 | esac | 36 | esac |
| 37 | break | ||
| 36 | done | 38 | done |
| 37 | 39 | ||
| 38 | remove_rcsd_link () { | 40 | remove_rcsd_link () { |
