<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>M5_passthrough</title><revhistory><revision><revnumber>1</revnumber><date>2010-12-19 21:16:14</date><authorinitials>stefanopilla</authorinitials></revision></revhistory></articleinfo><section><title>Nanostation M5 Passthrough</title><para>How To Use PoE Passthrough with OpenWRT </para><para>Device: Nanostation M5 </para><para>Powered device: Ubiquiti <ulink url="http://www.ninux.org/M5_passthrough/PicoStation#">PicoStation</ulink> </para><para>If you want you can use PoE Passthrough to power on a device  (in this case Ubiquiti <ulink url="http://www.ninux.org/M5_passthrough/PicoStation#">PicoStation</ulink>) with a secondary LAN interface. </para><para>On a device with OpenWRT you have to add these lines: </para><screen><![CDATA[echo 8 > /sys/class/gpio/export]]></screen><screen><![CDATA[echo out > /sys/class/gpio/gpio8/direction]]></screen><screen><![CDATA[echo 1 > /sys/class/gpio/gpio8/value]]></screen><para>If you want to power off the device you have to do: </para><screen><![CDATA[echo 0 > /sys/class/gpio/gpio8/value]]></screen></section></article>