blob: 37e7bb6556bcc692eff982140903a0e98bcfb63f [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 = " \
developer056f6de2023-01-18 16:10:07 +080010 file://* \
developer5b2f7e72022-07-28 14:35:41 +080011 "
12
developera5e56a92022-08-22 15:34:52 +080013RDEPENDS_${PN} += "bash"
14
developer5b2f7e72022-07-28 14:35:41 +080015SYSTEMD_PACKAGES = "${PN}"
16SYSTEMD_SERVICE_${PN} = " init-IPv6.service"
developer42af00d2022-08-29 18:59:45 +080017SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service"
developer3b0651a2022-10-03 16:57:42 +080018SYSTEMD_SERVICE_${PN} += " init-PPPQ.service"
developer68989f12022-12-19 15:14:00 +080019SYSTEMD_SERVICE_${PN} += " usb-mount@.service"
developer5b2f7e72022-07-28 14:35:41 +080020FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service"
developer42af00d2022-08-29 18:59:45 +080021FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service"
developer3b0651a2022-10-03 16:57:42 +080022FILES_${PN} += "{systemd_unitdir}/system/init-PPPQ.service"
developer68989f12022-12-19 15:14:00 +080023FILES_${PN} += "{systemd_unitdir}/system/usb-mount@.service"
developer5b2f7e72022-07-28 14:35:41 +080024
25do_install() {
26 install -d ${D}${sbindir}
27 install -m 0755 ${WORKDIR}/init-IPv6.sh ${D}${sbindir}
developer42af00d2022-08-29 18:59:45 +080028 install -m 0755 ${WORKDIR}/init-bridge.sh ${D}${sbindir}
developerb42b7bb2022-09-08 14:09:13 +080029 install -m 0755 ${WORKDIR}/factorydefault ${D}${sbindir}
developer056f6de2023-01-18 16:10:07 +080030 install -m 0755 ${WORKDIR}/lan_config.sh ${D}${sbindir}
31 install -m 0755 ${WORKDIR}/l2tp_config.sh ${D}${sbindir}
32 install -m 0755 ${WORKDIR}/pppoe_config.sh ${D}${sbindir}
33 install -m 0755 ${WORKDIR}/pptp_config.sh ${D}${sbindir}
34 install -m 0755 ${WORKDIR}/staticIP_config.sh ${D}${sbindir}
developer4ddf6772023-02-01 17:43:52 +080035 install -m 0755 ${WORKDIR}/init-PPPQ.sh ${D}${sbindir}
developer5b2f7e72022-07-28 14:35:41 +080036 install -d ${D}${systemd_unitdir}/system/
37 install -m 0644 ${S}/init-IPv6.service ${D}${systemd_unitdir}/system
developer42af00d2022-08-29 18:59:45 +080038 install -m 0644 ${S}/init-Lanbridge.service ${D}${systemd_unitdir}/system
developer3b0651a2022-10-03 16:57:42 +080039 install -m 0644 ${S}/init-PPPQ.service ${D}${systemd_unitdir}/system
developer68989f12022-12-19 15:14:00 +080040 install -m 0644 ${S}/usb-mount@.service ${D}${systemd_unitdir}/system
41 install -d ${D}${sysconfdir}/udev/rules.d
42 install -m 0644 ${WORKDIR}/99-local-usb-mount.rules ${D}${sysconfdir}/udev/rules.d
43 install -d ${D}${bindir}
44 install -m 0755 ${WORKDIR}/usb-mount.sh ${D}${bindir}
developer5b2f7e72022-07-28 14:35:41 +080045}