diff options
| author | Bogdan Oprescu <bogdan.oprescu@enea.com> | 2023-10-26 15:53:34 +0300 |
|---|---|---|
| committer | Bogdan Oprescu <bogdan.oprescu@enea.com> | 2023-10-26 15:53:34 +0300 |
| commit | 2bb8374f717b5700df8cbe87e60ff03515c02887 (patch) | |
| tree | 5e8dda7fb97bc757f4dd718c7ffd5bc2ba4ae9bb /scripts/rootfs_rpm-extract-postinst.awk | |
| download | poky-daisy-enea-231026.tar.gz | |
Adding the source code from EneaLinux 4.0_6daisy-enea-231026
Signed-off-by: Bogdan Oprescu <bogdan.oprescu@enea.com>
Diffstat (limited to 'scripts/rootfs_rpm-extract-postinst.awk')
| -rw-r--r-- | scripts/rootfs_rpm-extract-postinst.awk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/rootfs_rpm-extract-postinst.awk b/scripts/rootfs_rpm-extract-postinst.awk new file mode 100644 index 0000000000..8f2836b32c --- /dev/null +++ b/scripts/rootfs_rpm-extract-postinst.awk | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | /Name:.*/ { | ||
| 2 | package = substr($0, 7) | ||
| 3 | next | ||
| 4 | } | ||
| 5 | /postinstall.*scriptlet .*/ { | ||
| 6 | next | ||
| 7 | } | ||
| 8 | { | ||
| 9 | print $0 >> ENVIRON["D"] "/etc/rpm-postinsts/" package ".sh" | ||
| 10 | } | ||
| 11 | |||
