source: trunk/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl @ 26861

Last change on this file since 26861 was 26861, checked in by juhosg, 5 years ago

ar71xx: add uci config for the WLAN LED on the WRT160NL

Based on a patch by Magyar Szabolcs <mszabi@…>

  • Property svn:executable set to *
File size: 426 bytes
Line 
1#!/bin/sh
2#
3# Copyright (C) 2010 OpenWrt.org
4#
5
6. /lib/ar71xx.sh
7
8board=$(ar71xx_board_name)
9
10wrt160nl_fixtrx() {
11        mtd -o 32 fixtrx firmware
12}
13
14wrt160nl_setup_leds() {
15        uci batch <<EOF
16set system.wlan_led=led
17set system.wlan_led.name='WLAN'
18set system.wlan_led.sysfs='wrt160nl:blue:wlan'
19set system.wlan_led.trigger='phy0tpt'
20commit system
21EOF
22}
23
24if [ "${board}" == "wrt160nl" ]; then
25        wrt160nl_fixtrx
26        wrt160nl_setup_leds
27fi
Note: See TracBrowser for help on using the repository browser.