[OpenWrt-Devel] [PATCH 6/8] mpc85xx: increase timeout for NM50 fw-upgrade via luci

Dieter Pfeuffer dieter.pfeuffer at men.de
Wed Mar 23 08:17:30 EDT 2016


Signed-off-by: Dieter Pfeuffer <dieter.pfeuffer at men.de>
---
 .../base-files/etc/uci-defaults/men_nm50_uhttpd    | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 target/linux/mpc85xx/base-files/etc/uci-defaults/men_nm50_uhttpd

diff --git a/target/linux/mpc85xx/base-files/etc/uci-defaults/men_nm50_uhttpd b/target/linux/mpc85xx/base-files/etc/uci-defaults/men_nm50_uhttpd
new file mode 100644
index 0000000..107169e
--- /dev/null
+++ b/target/linux/mpc85xx/base-files/etc/uci-defaults/men_nm50_uhttpd
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Copyright (c) 2016 MEN Mikro Elektronik GmbH
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+. /lib/mpc85xx.sh
+
+board=$(mpc85xx_board_name)
+
+case "$board" in
+men_nm50)
+	# increase timeout for firmware update via the web interface
+	uci set uhttpd.main.script_timeout=240
+	uci commit uhttpd
+	;;
+*)
+esac
+
+exit 0
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list