blob: 652634361afd094e67bca392074991278d55fa9a [file] [log] [blame]
developer7180b0b2022-07-28 14:35:41 +08001SUMMARY = "Init filogic "
2SECTION = "applications"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5
6S = "${WORKDIR}"
7inherit systemd
8
9SRC_URI = " \
10 file://COPYING \
11 file://init-IPv6.sh \
12 file://init-IPv6.service \
developer08587352022-08-29 18:59:45 +080013 file://init-bridge.sh \
14 file://init-Lanbridge.service \
developer1b68abb2022-09-08 14:09:13 +080015 file://factorydefault \
developer7180b0b2022-07-28 14:35:41 +080016 "
17
developer89ea81b2022-08-22 15:34:52 +080018RDEPENDS_${PN} += "bash"
19
developer7180b0b2022-07-28 14:35:41 +080020SYSTEMD_PACKAGES = "${PN}"
21SYSTEMD_SERVICE_${PN} = " init-IPv6.service"
developer08587352022-08-29 18:59:45 +080022SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service"
developer7180b0b2022-07-28 14:35:41 +080023FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service"
developer08587352022-08-29 18:59:45 +080024FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service"
developer7180b0b2022-07-28 14:35:41 +080025
26do_install() {
27 install -d ${D}${sbindir}
28 install -m 0755 ${WORKDIR}/init-IPv6.sh ${D}${sbindir}
developer08587352022-08-29 18:59:45 +080029 install -m 0755 ${WORKDIR}/init-bridge.sh ${D}${sbindir}
developer1b68abb2022-09-08 14:09:13 +080030 install -m 0755 ${WORKDIR}/factorydefault ${D}${sbindir}
developer7180b0b2022-07-28 14:35:41 +080031 install -d ${D}${systemd_unitdir}/system/
32 install -m 0644 ${S}/init-IPv6.service ${D}${systemd_unitdir}/system
developer08587352022-08-29 18:59:45 +080033 install -m 0644 ${S}/init-Lanbridge.service ${D}${systemd_unitdir}/system
developer7180b0b2022-07-28 14:35:41 +080034}