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 python3
RRECOMMENDS:mac-config:  update-rc.d
SECTION: base
PKG:mac-config: mac-config
FILES:mac-config: /etc/init.d/update-mac-config.sh /exec.d/update-mac-config.sh /lib/systemd/system-preset/98-mac-config.preset /lib/systemd/system/update-mac-config.service
FILES_INFO:mac-config: {"/etc/init.d/update-mac-config.sh": 1076, "/exec.d/update-mac-config.sh": 1076, "/lib/systemd/system-preset/98-mac-config.preset": 33, "/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\nif [ -n "$D" -o ! -d /run/systemd/system ] && type update-rc.d >/dev/null 2>/dev/null; then\n\tif [ -n "$D" ]; then\n\t\tOPT="-r $D"\n\telse\n\t\tOPT="-s"\n\tfi\n\tupdate-rc.d $OPT update-mac-config.sh start 99 S .\nfi\n
pkg_postrm:mac-config: #!/bin/sh\nset -e\nif [ -n "$D" -o ! -d /run/systemd/system ] && type update-rc.d >/dev/null 2>/dev/null; then\n\tif [ -n "$D" ]; then\n\t\tOPT="-f -r $D"\n\telse\n\t\tOPT="-f"\n\tfi\n\tupdate-rc.d $OPT update-mac-config.sh remove\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\nif [ -n "$D" -o ! -d /run/systemd/system ] && [ -z "$D" -a -x "/etc/init.d/update-mac-config.sh" ]; then\n\t/etc/init.d/update-mac-config.sh stop || :\nfi\n
FILERDEPENDSFLIST:mac-config: /etc/init.d/update-mac-config.sh /exec.d/update-mac-config.sh
FILERDEPENDS:/etc/init.d/update-mac-config.sh:mac-config:  /bin/sh
FILERDEPENDS:/exec.d/update-mac-config.sh:mac-config:  /bin/sh
PKGSIZE:mac-config: 2311
