diff --git a/meta-stx-integ/recipes-core/systemd/systemd-compat-units.bbappend b/meta-stx-integ/recipes-core/systemd/systemd-compat-units.bbappend index 394e4b2..c3ccc48 100644 --- a/meta-stx-integ/recipes-core/systemd/systemd-compat-units.bbappend +++ b/meta-stx-integ/recipes-core/systemd/systemd-compat-units.bbappend @@ -1,6 +1,16 @@ SYSTEMD_DISABLED_SYSV_SERVICES_remove += " networking" -pkg_postinst_ontarget_${PN}() { - - systemctl enable networking.service +pkg_postinst_${PN}_append () { + + if [ -n "$D" ]; then + OPT="-f -r $D" + else + OPT="-f" + fi + + if [ -f "$D${sysconfdir}/init.d/networking" ]; then + update-rc.d $OPT networking defaults + fi } + +RDEPENDS_${PN} += "update-rc.d"