This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 30th, 2013  |  syntax: None  |  size: 0.83 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. DESCRIPTION = "This is the setup needed to run the cpu8-app"
  2.  
  3. SECTION = "userland"
  4. PRIORITY = "required"
  5. DEPENDS = "base-passwd"
  6.  
  7. LICENSE = "Proprietary"
  8. LIC_FILES_CHKSUM = "file://COPYING;md5=cf6970dcd5913a3a2de7cb4bfcaf5b36"
  9.  
  10. PR = "r12"
  11.  
  12. SRC_URI = "file://COPYING"
  13. SRC_URI += "file://bootfinal.sh"
  14.  
  15. do_configure_prepend() {
  16.    cp ${WORKDIR}/COPYING ${S}/COPYING
  17. }
  18.  
  19. do_install() {
  20.    install -d ${D}/${sysconfdir}/init.d
  21.    install -m 755 ${WORKDIR}/bootfinal.sh ${D}/${sysconfdir}/init.d
  22.    update-rc.d -r ${D} bootfinal.sh start 99 2 3 4 5 .
  23.    install -d -m 775 ${D}/binaries
  24.    install -d -m 775 ${D}/configs
  25.    chown -h 33:33 ${D}/configs
  26.    touch ${D}/configs/cpu8Memory.img
  27.    ln -s /configs/cpu8Memory.img ${D}/configs/.MainMemory
  28. }
  29.  
  30. FILES_${PN} = "${sysconfdir}/* /binaries /configs/.MainMemory /configs/*"
clone this paste RAW Paste Data