PN: mac-config
PV: 1.0
PR: r0
PKGV: 1.0
PKGR: r0.0
LICENSE: MIT
DESCRIPTION: Init script to update MAC address
SUMMARY: Init script for Kria SOM to update MAC address using ipmi_fru
RDEPENDS:mac-config: freeipmi
SECTION: base
PKG:mac-config: mac-config
FILES:mac-config:  /exec.d/update-mac-config.sh /usr/lib/systemd/system-preset/98-mac-config.preset /usr/lib/systemd/system/update-mac-config.service
FILES_INFO:mac-config: {"/exec.d/update-mac-config.sh": 1076, "/usr/lib/systemd/system-preset/98-mac-config.preset": 33, "/usr/lib/systemd/system/update-mac-config.service": 126}
pkg_postinst:mac-config: #!/bin/sh\nset -e\nif systemctl >/dev/null 2>/dev/null; then\n\tOPTS=""\n\n\tif [ -n "$D" ]; then\n\t\tOPTS="--root=$D"\n\tfi\n\n\tif [ "enable" = "enable" ]; then\n\t\tfor service in update-mac-config.service; do\n\t\t\tsystemctl ${OPTS} enable "$service"\n\t\tdone\n\tfi\n\n\tif [ -z "$D" ]; then\n\t\tsystemctl daemon-reload\n\t\tsystemctl preset update-mac-config.service\n\n\t\tif [ "enable" = "enable" ]; then\n\t\t\tsystemctl --no-block restart update-mac-config.service\n\t\tfi\n\tfi\nfi\n
pkg_prerm:mac-config: #!/bin/sh\nset -e\nif systemctl >/dev/null 2>/dev/null; then\n\tif [ -z "$D" ]; then\n\t\tsystemctl stop update-mac-config.service\n\n\t\tsystemctl disable update-mac-config.service\n\tfi\nfi\n
FILERDEPENDSFLIST:mac-config: /exec.d/update-mac-config.sh
FILERDEPENDS:/exec.d/update-mac-config.sh:mac-config:  /bin/sh
PKGSIZE:mac-config: 1235
