blob: 37e7bb6556bcc692eff982140903a0e98bcfb63f [file] [log] [blame]
SUMMARY = "Init filogic "
SECTION = "applications"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
S = "${WORKDIR}"
inherit systemd
SRC_URI = " \
file://* \
"
RDEPENDS_${PN} += "bash"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = " init-IPv6.service"
SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service"
SYSTEMD_SERVICE_${PN} += " init-PPPQ.service"
SYSTEMD_SERVICE_${PN} += " usb-mount@.service"
FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service"
FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service"
FILES_${PN} += "{systemd_unitdir}/system/init-PPPQ.service"
FILES_${PN} += "{systemd_unitdir}/system/usb-mount@.service"
do_install() {
install -d ${D}${sbindir}
install -m 0755 ${WORKDIR}/init-IPv6.sh ${D}${sbindir}
install -m 0755 ${WORKDIR}/init-bridge.sh ${D}${sbindir}
install -m 0755 ${WORKDIR}/factorydefault ${D}${sbindir}
install -m 0755 ${WORKDIR}/lan_config.sh ${D}${sbindir}
install -m 0755 ${WORKDIR}/l2tp_config.sh ${D}${sbindir}
install -m 0755 ${WORKDIR}/pppoe_config.sh ${D}${sbindir}
install -m 0755 ${WORKDIR}/pptp_config.sh ${D}${sbindir}
install -m 0755 ${WORKDIR}/staticIP_config.sh ${D}${sbindir}
install -m 0755 ${WORKDIR}/init-PPPQ.sh ${D}${sbindir}
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/init-IPv6.service ${D}${systemd_unitdir}/system
install -m 0644 ${S}/init-Lanbridge.service ${D}${systemd_unitdir}/system
install -m 0644 ${S}/init-PPPQ.service ${D}${systemd_unitdir}/system
install -m 0644 ${S}/usb-mount@.service ${D}${systemd_unitdir}/system
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/99-local-usb-mount.rules ${D}${sysconfdir}/udev/rules.d
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/usb-mount.sh ${D}${bindir}
}