瀏覽代碼

fixed FW update and network config

Danja Vasiliev 10 年之前
父節點
當前提交
8788b9fa88
共有 2 個文件被更改,包括 17 次插入0 次删除
  1. 8 0
      openwrt/common/opt/lib/scripts/fw-upgrade.sh
  2. 9 0
      openwrt/common/opt/lib/scripts/net-restart.sh

+ 8 - 0
openwrt/common/opt/lib/scripts/fw-upgrade.sh

@@ -0,0 +1,8 @@
+#!/bin/sh
+
+sleep 3
+
+sysupgrade -v $1 > /tmp/fw-upgrade.log
+
+exit 0
+

+ 9 - 0
openwrt/common/opt/lib/scripts/net-restart.sh

@@ -0,0 +1,9 @@
+#!/bin/sh
+
+sleep 3
+
+/sbin/wifi
+/etc/init.d/network restart
+/etc/init.d/dnsmasq restart
+
+exit 0