From 67e1c8701215724dcee9fabcbd7a397ea76e1a9d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 11 Dec 2015 15:26:06 +0000 Subject: all: drop old uci-defaults.sh Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one and update all users accordingly. Signed-off-by: Jo-Philipp Wich SVN-Revision: 47867 --- .../base-files/files/lib/functions/uci-defaults.sh | 807 +++++++++++++-------- 1 file changed, 519 insertions(+), 288 deletions(-) mode change 100644 => 100755 package/base-files/files/lib/functions/uci-defaults.sh (limited to 'package/base-files/files/lib/functions/uci-defaults.sh') diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh old mode 100644 new mode 100755 index 2658d439ac..de3f180cbb --- a/package/base-files/files/lib/functions/uci-defaults.sh +++ b/package/base-files/files/lib/functions/uci-defaults.sh @@ -1,345 +1,576 @@ -#!/bin/sh -# Copyright (C) 2011 OpenWrt.org +#!/bin/ash -UCIDEF_LEDS_CHANGED=0 -UCIDEF_GPIO_SWITCHES_CHANGED=0 +CFG=/etc/board.json -ucidef_set_led_netdev() { - local cfg="led_$1" - local name=$2 - local sysfs=$3 - local dev=$4 - - uci -q get system.$cfg && return 0 - - uci batch < /tmp/.board.json + mv /tmp/.board.json ${CFG} +} -- cgit v1.2.3