developer | 5b2f7e7 | 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 = " \ |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 10 | file://init-service/ \ |
| 11 | file://COPYING \ |
developer | 5b2f7e7 | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 12 | " |
| 13 | |
developer | a5e56a9 | 2022-08-22 15:34:52 +0800 | [diff] [blame] | 14 | RDEPENDS_${PN} += "bash" |
| 15 | |
developer | 5b2f7e7 | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 16 | SYSTEMD_PACKAGES = "${PN}" |
| 17 | SYSTEMD_SERVICE_${PN} = " init-IPv6.service" |
developer | 42af00d | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 18 | SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service" |
developer | 3b0651a | 2022-10-03 16:57:42 +0800 | [diff] [blame] | 19 | SYSTEMD_SERVICE_${PN} += " init-PPPQ.service" |
developer | 68989f1 | 2022-12-19 15:14:00 +0800 | [diff] [blame] | 20 | SYSTEMD_SERVICE_${PN} += " usb-mount@.service" |
developer | 5b2f7e7 | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 21 | FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service" |
developer | 42af00d | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 22 | FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service" |
developer | 3b0651a | 2022-10-03 16:57:42 +0800 | [diff] [blame] | 23 | FILES_${PN} += "{systemd_unitdir}/system/init-PPPQ.service" |
developer | 68989f1 | 2022-12-19 15:14:00 +0800 | [diff] [blame] | 24 | FILES_${PN} += "{systemd_unitdir}/system/usb-mount@.service" |
developer | 5b2f7e7 | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 25 | |
| 26 | do_install() { |
| 27 | install -d ${D}${sbindir} |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 28 | install -m 0755 ${S}/init-service/init-IPv6.sh ${D}${sbindir} |
| 29 | install -m 0755 ${S}/init-service/init-bridge.sh ${D}${sbindir} |
| 30 | install -m 0755 ${S}/init-service/factorydefault ${D}${sbindir} |
| 31 | install -m 0755 ${S}/init-service/lan_config.sh ${D}${sbindir} |
| 32 | install -m 0755 ${S}/init-service/l2tp_config.sh ${D}${sbindir} |
| 33 | install -m 0755 ${S}/init-service/pppoe_config.sh ${D}${sbindir} |
| 34 | install -m 0755 ${S}/init-service/pptp_config.sh ${D}${sbindir} |
| 35 | install -m 0755 ${S}/init-service/staticIP_config.sh ${D}${sbindir} |
| 36 | install -m 0755 ${S}/init-service/init-PPPQ.sh ${D}${sbindir} |
developer | 5b2f7e7 | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 37 | install -d ${D}${systemd_unitdir}/system/ |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 38 | install -m 0644 ${S}/init-service/init-IPv6.service ${D}${systemd_unitdir}/system |
| 39 | install -m 0644 ${S}/init-service/init-Lanbridge.service ${D}${systemd_unitdir}/system |
| 40 | install -m 0644 ${S}/init-service/init-PPPQ.service ${D}${systemd_unitdir}/system |
| 41 | install -m 0644 ${S}/init-service/usb-mount@.service ${D}${systemd_unitdir}/system |
developer | 68989f1 | 2022-12-19 15:14:00 +0800 | [diff] [blame] | 42 | install -d ${D}${sysconfdir}/udev/rules.d |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 43 | install -m 0644 ${S}/init-service/99-local-usb-mount.rules ${D}${sysconfdir}/udev/rules.d |
developer | 68989f1 | 2022-12-19 15:14:00 +0800 | [diff] [blame] | 44 | install -d ${D}${bindir} |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 45 | install -m 0755 ${S}/init-service/usb-mount.sh ${D}${bindir} |
developer | 5b2f7e7 | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 46 | } |