PN: misc-config
PV: 1.0
PR: r0
PKGV: 1.0
PKGR: r0@EXTENDPRAUTO@
LICENSE: MIT
DESCRIPTION: Init script to update MAC address by getting \t\tthe information  using fru_print application
SUMMARY: Init script to update MAC address by getting \t\tthe information using fru_print application and \t\tthis applicable for Kria SOM devices
RDEPENDS:misc-config: freeipmi python3
RRECOMMENDS:misc-config:  update-rc.d
SECTION: base
PKG:misc-config: misc-config
FILES:misc-config: /etc/init.d/update-misc-config.sh /exec.d/update-misc-config.sh /lib/systemd/system-preset/98-misc-config.preset /lib/systemd/system/update-misc-config.service
FILES_INFO:misc-config: {"/etc/init.d/update-misc-config.sh": 1240, "/exec.d/update-misc-config.sh": 1240, "/lib/systemd/system-preset/98-misc-config.preset": 34, "/lib/systemd/system/update-misc-config.service": 128}
pkg_postinst:misc-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-misc-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-misc-config.service\n\n\t\tif [ "enable" = "enable" ]; then\n\t\t\tsystemctl --no-block restart update-misc-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-misc-config.sh start 99 S .\nfi\n
pkg_postrm:misc-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-misc-config.sh remove\nfi\n
pkg_prerm:misc-config: #!/bin/sh\nset -e\nif systemctl >/dev/null 2>/dev/null; then\n\tif [ -z "$D" ]; then\n\t\tsystemctl stop update-misc-config.service\n\n\t\tsystemctl disable update-misc-config.service\n\tfi\nfi\nif [ -n "$D" -o ! -d /run/systemd/system ] && [ -z "$D" -a -x "/etc/init.d/update-misc-config.sh" ]; then\n\t/etc/init.d/update-misc-config.sh stop || :\nfi\n
FILERDEPENDSFLIST:misc-config: /etc/init.d/update-misc-config.sh /exec.d/update-misc-config.sh
FILERDEPENDS:/etc/init.d/update-misc-config.sh:misc-config:  /bin/sh
FILERDEPENDS:/exec.d/update-misc-config.sh:misc-config:  /bin/sh
PKGSIZE:misc-config: 2642
