diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-31 14:37:10 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-31 14:50:38 +0200 |
| commit | 658bd7ef32390e5d364fb41ba93363b5ee8eeb3b (patch) | |
| tree | e94d0ba6807333f0f2a94a9fadeb74c1771727fb /meta-oe | |
| parent | 5c3ba556836252a0ca4179173cad3c85c15bde77 (diff) | |
| download | meta-openembedded-658bd7ef32390e5d364fb41ba93363b5ee8eeb3b.tar.gz | |
systemd-compat-units: package to fixup the rootfs, shouldn't be needed in the future
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-core/systemd/systemd-compat-units.bb | 31 | ||||
| -rw-r--r-- | meta-oe/recipes-core/systemd/systemd-compat-units/opkg.service | 10 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd-compat-units.bb b/meta-oe/recipes-core/systemd/systemd-compat-units.bb new file mode 100644 index 0000000000..6fc040f555 --- /dev/null +++ b/meta-oe/recipes-core/systemd/systemd-compat-units.bb | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | DESCRIPTION = "Units to make systemd work better with existing sysvinit scripts" | ||
| 2 | |||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | ||
| 5 | |||
| 6 | inherit allarch | ||
| 7 | |||
| 8 | SRC_URI = "file://opkg.service" | ||
| 9 | |||
| 10 | do_install() { | ||
| 11 | install -d ${D}${base_libdir}/systemd/system/basic.target.wants | ||
| 12 | install -m 0644 ${WORKDIR}/opkg.service ${D}${base_libdir}/systemd/system | ||
| 13 | ln -sf ../opkg.service ${D}${base_libdir}/systemd/system/basic.target.wants/ | ||
| 14 | } | ||
| 15 | |||
| 16 | pkg_postinst_${PN} () { | ||
| 17 | cd $D${sysconfdir}/init.d | ||
| 18 | |||
| 19 | echo -n "Disabling the following sysv scripts: " | ||
| 20 | |||
| 21 | for i in busybox-udhcpc dnsmasq hwclock.sh syslog syslog.busybox ; do | ||
| 22 | if [ -e $i ] ; then | ||
| 23 | echo -n "$i " ; ln -s /dev/null $D${base_libdir}/systemd/system/$i.service | ||
| 24 | fi | ||
| 25 | done ; echo | ||
| 26 | } | ||
| 27 | |||
| 28 | FILES_${PN} = "${base_libdir}/systemd/system" | ||
| 29 | RDPEPENDS_${PN} = "systemd" | ||
| 30 | |||
| 31 | |||
diff --git a/meta-oe/recipes-core/systemd/systemd-compat-units/opkg.service b/meta-oe/recipes-core/systemd/systemd-compat-units/opkg.service new file mode 100644 index 0000000000..c346e57c35 --- /dev/null +++ b/meta-oe/recipes-core/systemd/systemd-compat-units/opkg.service | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Opkg first boot configure | ||
| 3 | ConditionPathExists=|/etc/rcS.d/S98configure | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | ExecStart=/etc/rcS.d/S98configure | ||
| 7 | RemainAfterExit=no | ||
| 8 | |||
| 9 | [Install] | ||
| 10 | WantedBy=basic.target | ||
