blob: 82457096266fe9792fae96e04d1257a3e0331494 [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 \
developer7791f1b2022-10-03 16:57:42 +080016 file://init-PPPQ.service \
developer7180b0b2022-07-28 14:35:41 +080017 "
18
developer89ea81b2022-08-22 15:34:52 +080019RDEPENDS_${PN} += "bash"
20
developer7180b0b2022-07-28 14:35:41 +080021SYSTEMD_PACKAGES = "${PN}"
22SYSTEMD_SERVICE_${PN} = " init-IPv6.service"
developer08587352022-08-29 18:59:45 +080023SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service"
developer7791f1b2022-10-03 16:57:42 +080024SYSTEMD_SERVICE_${PN} += " init-PPPQ.service"
developer7180b0b2022-07-28 14:35:41 +080025FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service"
developer08587352022-08-29 18:59:45 +080026FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service"
developer7791f1b2022-10-03 16:57:42 +080027FILES_${PN} += "{systemd_unitdir}/system/init-PPPQ.service"
developer7180b0b2022-07-28 14:35:41 +080028
29do_install() {
30 install -d ${D}${sbindir}
31 install -m 0755 ${WORKDIR}/init-IPv6.sh ${D}${sbindir}
developer08587352022-08-29 18:59:45 +080032 install -m 0755 ${WORKDIR}/init-bridge.sh ${D}${sbindir}
developer1b68abb2022-09-08 14:09:13 +080033 install -m 0755 ${WORKDIR}/factorydefault ${D}${sbindir}
developer7180b0b2022-07-28 14:35:41 +080034 install -d ${D}${systemd_unitdir}/system/
35 install -m 0644 ${S}/init-IPv6.service ${D}${systemd_unitdir}/system
developer08587352022-08-29 18:59:45 +080036 install -m 0644 ${S}/init-Lanbridge.service ${D}${systemd_unitdir}/system
developer7791f1b2022-10-03 16:57:42 +080037 install -m 0644 ${S}/init-PPPQ.service ${D}${systemd_unitdir}/system
developer7180b0b2022-07-28 14:35:41 +080038}