diff options
Diffstat (limited to 'meta/packages/meta/run-postinsts/run-postinsts.awk')
-rw-r--r-- | meta/packages/meta/run-postinsts/run-postinsts.awk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/packages/meta/run-postinsts/run-postinsts.awk b/meta/packages/meta/run-postinsts/run-postinsts.awk index 46ee8df9a4..bdea8c95ad 100644 --- a/meta/packages/meta/run-postinsts/run-postinsts.awk +++ b/meta/packages/meta/run-postinsts/run-postinsts.awk | |||
@@ -7,6 +7,11 @@ | |||
7 | # | 7 | # |
8 | 8 | ||
9 | BEGIN { | 9 | BEGIN { |
10 | rc=system("test -d /usr/dpkg/info/") | ||
11 | if (rc==0) | ||
12 | pkgdir="/usr/dpkg/info" | ||
13 | else | ||
14 | pkgdir="/usr/lib/opkg/info" | ||
10 | package="" | 15 | package="" |
11 | } | 16 | } |
12 | /Package:.*/ { | 17 | /Package:.*/ { |
@@ -14,7 +19,7 @@ BEGIN { | |||
14 | } | 19 | } |
15 | /Status:.*unpacked.*/ { | 20 | /Status:.*unpacked.*/ { |
16 | print "Configuring: " package > "/dev/stderr" | 21 | print "Configuring: " package > "/dev/stderr" |
17 | ret = system("/usr/lib/opkg/info/" package ".postinst 1>&2") | 22 | ret = system(pkgdir "/" package ".postinst 1>&2") |
18 | if (ret == 0) | 23 | if (ret == 0) |
19 | $0 = gensub("unpacked", "installed", 1) | 24 | $0 = gensub("unpacked", "installed", 1) |
20 | else | 25 | else |