diff options
| -rw-r--r-- | meta-oe/recipes-core/systemd/systemd-systemctl-native.bb | 2 | ||||
| -rwxr-xr-x | meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd-systemctl-native.bb b/meta-oe/recipes-core/systemd/systemd-systemctl-native.bb index 3ee757e153..dcd67ee547 100644 --- a/meta-oe/recipes-core/systemd/systemd-systemctl-native.bb +++ b/meta-oe/recipes-core/systemd/systemd-systemctl-native.bb | |||
| @@ -3,6 +3,8 @@ DESCRIPTION = "Wrapper to enable of systemd services" | |||
| 3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" |
| 5 | 5 | ||
| 6 | PR = "r1" | ||
| 7 | |||
| 6 | inherit native | 8 | inherit native |
| 7 | 9 | ||
| 8 | SRC_URI = "file://systemctl" | 10 | SRC_URI = "file://systemctl" |
diff --git a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl index 1fc77fd92b..54c1a18bf3 100755 --- a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl +++ b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl | |||
| @@ -49,3 +49,11 @@ for r in $wanted_by; do | |||
| 49 | ln -s $service_file $ROOT/etc/systemd/system/$r.wants | 49 | ln -s $service_file $ROOT/etc/systemd/system/$r.wants |
| 50 | echo "Enabled $service for $wanted_by." | 50 | echo "Enabled $service for $wanted_by." |
| 51 | done | 51 | done |
| 52 | |||
| 53 | # call us for the other required scripts | ||
| 54 | also=$(grep Also $ROOT/$service_file \ | ||
| 55 | | sed 's,Also=,,g' \ | ||
| 56 | | tr ',' '\n') | ||
| 57 | for a in $also; do | ||
| 58 | $0 --root=$ROOT enable $a | ||
| 59 | done | ||
