LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
-PR = "r1"
+PR = "r9"
inherit allarch
do_install() {
install -d ${D}${base_libdir}/systemd/system/basic.target.wants
+ install -d ${D}${base_libdir}/systemd/system/sysinit.target.wants/
install -m 0644 ${WORKDIR}/opkg.service ${D}${base_libdir}/systemd/system
ln -sf ../opkg.service ${D}${base_libdir}/systemd/system/basic.target.wants/
+ ln -sf ../opkg.service ${D}${base_libdir}/systemd/system/sysinit.target.wants/
+
+ # hack to make old style sysvinit postinsts succeed
+ install -d ${D}${bindir}
+ echo "echo 1" > ${D}${bindir}/runlevel
+ chmod 0755 ${D}${bindir}/runlevel
}
pkg_postinst_${PN} () {
done ; echo
}
-FILES_${PN} = "${base_libdir}/systemd/system"
+FILES_${PN} = "${base_libdir}/systemd/system ${bindir}"
RDPEPENDS_${PN} = "systemd"
[Unit]
Description=Opkg first boot configure
+DefaultDependencies=no
ConditionPathExists=|/etc/rcS.d/S98configure
+Before=sysinit.target systemd-tmpfiles.service
[Service]
ExecStart=/etc/rcS.d/S98configure
-RemainAfterExit=no
+RemainAfterExit=No
+Type=oneshot
+StandardOutput=syslog
+TimeoutSec=0
[Install]
WantedBy=basic.target
+WantedBy=sysinit.target