diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-02-26 14:49:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-02-26 14:49:17 +0000 |
commit | eced3b3a355199e1a1b51cba41689d9336d95c40 (patch) | |
tree | 84c0da0193f4b0a9b1c646eebb59596528d441cf /package/base-files/files/bin/config_generate | |
parent | 578e8d6c588d7bf3875e395548d6f78a1e71208a (diff) | |
download | upstream-eced3b3a355199e1a1b51cba41689d9336d95c40.tar.gz upstream-eced3b3a355199e1a1b51cba41689d9336d95c40.tar.bz2 upstream-eced3b3a355199e1a1b51cba41689d9336d95c40.zip |
base-files: support passing mode to ucidef_set_led_netdev()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 48806
Diffstat (limited to 'package/base-files/files/bin/config_generate')
-rwxr-xr-x | package/base-files/files/bin/config_generate | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 865dccc450..550de0eebf 100755 --- a/package/base-files/files/bin/config_generate +++ b/package/base-files/files/bin/config_generate @@ -263,11 +263,11 @@ generate_led() { ;; netdev) - local device - json_get_vars device + local device mode + json_get_vars device mode uci -q batch <<-EOF set system.$cfg.trigger='netdev' - set system.$cfg.mode='link tx rx' + set system.$cfg.mode='$mode' set system.$cfg.dev='$device' EOF ;; |