lantiq: set up DSL front-end GPIOs if they exist
This is necessary for devices using the PSB80108/VRX220LD front-end (currently only known on the Netgear DM200). Signed-off-by: Thomas Nixon <tom@tomn.co.uk>
This commit is contained in:
parent
4b32d66216
commit
08cd5b769d
1 changed files with 14 additions and 0 deletions
|
@ -225,6 +225,20 @@ start_service() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
local annexgpio="/sys/class/gpio/annex"
|
||||||
|
if [ -d "${annexgpio}a" ] && [ -d "${annexgpio}b" ]; then
|
||||||
|
case "${annex}" in
|
||||||
|
a*|l*|m*)
|
||||||
|
echo 1 > "${annexgpio}a/value"
|
||||||
|
echo 0 > "${annexgpio}b/value"
|
||||||
|
;;
|
||||||
|
b*|j*)
|
||||||
|
echo 0 > "${annexgpio}a/value"
|
||||||
|
echo 1 > "${annexgpio}b/value"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${firmware}" ]; then
|
if [ -z "${firmware}" ]; then
|
||||||
# search for the firmware provided by dsl-vrx200-firmware-xdsl-*
|
# search for the firmware provided by dsl-vrx200-firmware-xdsl-*
|
||||||
if grep -qE "system type.*: (VR9|xRX200)" /proc/cpuinfo; then
|
if grep -qE "system type.*: (VR9|xRX200)" /proc/cpuinfo; then
|
||||||
|
|
Loading…
Reference in a new issue