developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 1 | SUMMARY = "Init filogic " |
| 2 | SECTION = "applications" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 5 | |
| 6 | S = "${WORKDIR}" |
| 7 | inherit systemd |
| 8 | |
| 9 | SRC_URI = " \ |
| 10 | file://COPYING \ |
| 11 | file://init-IPv6.sh \ |
| 12 | file://init-IPv6.service \ |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 13 | file://init-bridge.sh \ |
| 14 | file://init-Lanbridge.service \ |
developer | 1b68abb | 2022-09-08 14:09:13 +0800 | [diff] [blame^] | 15 | file://factorydefault \ |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 16 | " |
| 17 | |
developer | 89ea81b | 2022-08-22 15:34:52 +0800 | [diff] [blame] | 18 | RDEPENDS_${PN} += "bash" |
| 19 | |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 20 | SYSTEMD_PACKAGES = "${PN}" |
| 21 | SYSTEMD_SERVICE_${PN} = " init-IPv6.service" |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 22 | SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service" |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 23 | FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service" |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 24 | FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service" |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 25 | |
| 26 | do_install() { |
| 27 | install -d ${D}${sbindir} |
| 28 | install -m 0755 ${WORKDIR}/init-IPv6.sh ${D}${sbindir} |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 29 | install -m 0755 ${WORKDIR}/init-bridge.sh ${D}${sbindir} |
developer | 1b68abb | 2022-09-08 14:09:13 +0800 | [diff] [blame^] | 30 | install -m 0755 ${WORKDIR}/factorydefault ${D}${sbindir} |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 31 | install -d ${D}${systemd_unitdir}/system/ |
| 32 | install -m 0644 ${S}/init-IPv6.service ${D}${systemd_unitdir}/system |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 33 | install -m 0644 ${S}/init-Lanbridge.service ${D}${systemd_unitdir}/system |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 34 | } |