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