Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 48806
include $(INCLUDE_DIR)/version.mk
PKG_NAME:=base-files
-PKG_RELEASE:=167
+PKG_RELEASE:=168
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=usign/host
;;
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
;;
local name="$2"
local sysfs="$3"
local dev="$4"
+ local mode="${5:-link tx rx}"
json_select_object led
json_add_string type netdev
json_add_string sysfs "$sysfs"
json_add_string device "$dev"
+ json_add_string mode "$mode"
json_select ..
json_select ..