Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SUMMARY = "USB Mass Storage Device related systemd services"
- SECTION = "services"
- LICENSE = "CLOSED"
- inherit systemd image_types
- S = "${WORKDIR}"
- FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
- SRC_URI = "file://mass-storage-start.sh \
- file://mass-storage-stop.sh \
- file://mass-storage.service \
- "
- FILES_${PN} = " ${bindir}/mass-storage-start.sh \
- ${bindir}/mass-storage-stop.sh \
- ${systemd_unitdir}/system/mass-storage.service \
- /mnt/user_data.bin \
- "
- SYSTEMD_SERVICE_${PN} = "mass-storage.service"
- do_install_append () {
- install -d ${D}${systemd_unitdir}/system
- install -m 644 ${S}/mass-storage.service ${D}${systemd_unitdir}/system
- install -d ${D}${bindir}
- install -m 755 ${S}/mass-storage-start.sh ${D}${bindir}
- install -m 755 ${S}/mass-storage-stop.sh ${D}${bindir}
- install -d ${D}/mnt/user_data
- dd if=/dev/zero of=${D}/mnt/user_data.bin bs=512 count=1048576
- mkfs.vfat -n "OTDR" -S 512 -F 32 -C ${D}/mnt/user_data.bin
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement