blob: 83e80afa5d8e7afb355db126b01ba5797bcd48a3 [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 = " \
developer93e97202024-01-17 12:29:44 +080010 file://init-service/ \
11 file://COPYING \
developer5b2f7e72022-07-28 14:35:41 +080012 "
13
developera5e56a92022-08-22 15:34:52 +080014RDEPENDS_${PN} += "bash"
15
developer5b2f7e72022-07-28 14:35:41 +080016SYSTEMD_PACKAGES = "${PN}"
17SYSTEMD_SERVICE_${PN} = " init-IPv6.service"
developer42af00d2022-08-29 18:59:45 +080018SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service"
developer3b0651a2022-10-03 16:57:42 +080019SYSTEMD_SERVICE_${PN} += " init-PPPQ.service"
developer68989f12022-12-19 15:14:00 +080020SYSTEMD_SERVICE_${PN} += " usb-mount@.service"
developer5b2f7e72022-07-28 14:35:41 +080021FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service"
developer42af00d2022-08-29 18:59:45 +080022FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service"
developer3b0651a2022-10-03 16:57:42 +080023FILES_${PN} += "{systemd_unitdir}/system/init-PPPQ.service"
developer68989f12022-12-19 15:14:00 +080024FILES_${PN} += "{systemd_unitdir}/system/usb-mount@.service"
developer5b2f7e72022-07-28 14:35:41 +080025
26do_install() {
27 install -d ${D}${sbindir}
developer93e97202024-01-17 12:29:44 +080028 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}
developer5b2f7e72022-07-28 14:35:41 +080037 install -d ${D}${systemd_unitdir}/system/
developer93e97202024-01-17 12:29:44 +080038 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
developer68989f12022-12-19 15:14:00 +080042 install -d ${D}${sysconfdir}/udev/rules.d
developer93e97202024-01-17 12:29:44 +080043 install -m 0644 ${S}/init-service/99-local-usb-mount.rules ${D}${sysconfdir}/udev/rules.d
developer68989f12022-12-19 15:14:00 +080044 install -d ${D}${bindir}
developer93e97202024-01-17 12:29:44 +080045 install -m 0755 ${S}/init-service/usb-mount.sh ${D}${bindir}
developer5b2f7e72022-07-28 14:35:41 +080046}