Notes added:
1) All GPIO references use the hardware numbering scheme
2) Enabling gpio-poweroff prevents the ability to boot the pi by driving GPIO3 low
Configuring additional, optional hardware is done using Device Tree overlays
(see below).
+GPIO numbering uses the hardware pin numbering scheme (aka BCM scheme) and
+not the physical pin numbers.
+
raspi-config
============
Name: gpio-poweroff
-Info: Drives a GPIO high or low on poweroff (including halt)
+Info: Drives a GPIO high or low on poweroff (including halt). Enabling this
+ overlay will prevent the ability to boot by driving GPIO3 low.
Load: dtoverlay=gpio-poweroff,<param>=<val>
Params: gpiopin GPIO for signalling (default 26)