Openembedded Core Discussions
 help / color / mirror / Atom feed
* is it best practice to use ${sysconfdir} rather than hard-coding "/etc"?
@ 2012-06-30 13:25 Robert P. J. Day
  2012-06-30 13:29 ` Martin Jansa
  2012-06-30 14:34 ` Andrei Gherzan
  0 siblings, 2 replies; 5+ messages in thread
From: Robert P. J. Day @ 2012-06-30 13:25 UTC (permalink / raw)
  To: OE Core mailing list


  i suspect i know the answer to this, but in the recipe file
usbinit.bb, we have:

do_install() {
    install -d ${D}/etc
    install -d ${D}/etc/init.d
    install usb-gether ${D}/etc/init.d
}

  i'm guessing that would more properly be coded:

do_install() {
    install -d ${D}${sysconfdir}
    install -d ${D}${sysconfdir}/init.d
    install usb-gether ${D}${sysconfdir}/init.d
}

  the end result is functionally identical, of course, it's all just a
matter of style.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-30 14:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-30 13:25 is it best practice to use ${sysconfdir} rather than hard-coding "/etc"? Robert P. J. Day
2012-06-30 13:29 ` Martin Jansa
2012-06-30 13:41   ` Robert P. J. Day
2012-06-30 14:45     ` Mark Hatle
2012-06-30 14:34 ` Andrei Gherzan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox