|
1 | 1 | #!/bin/sh
|
2 | 2 | clear
|
| 3 | +/etc/init.d/uhttpd stop >> /root/install_customice.log |
3 | 4 | mv /www/index.html /www/index.old
|
4 | 5 | release=$(grep "DISTRIB_RELEASE" /etc/openwrt_release | cut -f2 -d '=')
|
5 | 6 | revision=$(grep "DISTRIB_REVISION" /etc/openwrt_release | cut -f2 -d '=')
|
@@ -113,7 +114,7 @@ check_download() {
|
113 | 114 |
|
114 | 115 | wget --waitretry=10 -t 5 -O "/root/$OUTPUT_FILE" "$URL"
|
115 | 116 |
|
116 |
| - if [[ $? -eq 0 ]]; then |
| 117 | + wait && if [[ $? -eq 0 ]]; then |
117 | 118 | if check_hash "$OUTPUT_FILE"; then
|
118 | 119 | echo "Hash is okay" >> /root/install_customice.log
|
119 | 120 | break
|
@@ -174,8 +175,8 @@ uci set uhttpd.main.index_page='index.php'
|
174 | 175 | uci set uhttpd.main.interpreter='.php=/usr/bin/php-cgi'
|
175 | 176 | processes=$(uci commit && reload_config)
|
176 | 177 | wait $processes >> /root/install_customice.log
|
177 |
| -/etc/init.d/uhttpd restart >> /root/install_customice.log |
178 |
| -/etc/init.d/network restart >> /root/install_customice.log |
| 178 | +#/etc/init.d/uhttpd restart >> /root/install_customice.log |
| 179 | +#/etc/init.d/network restart >> /root/install_customice.log |
179 | 180 | echo
|
180 | 181 | echo 'Default Country-Settings'
|
181 | 182 | echo
|
@@ -422,6 +423,11 @@ set_uhttpd() {
|
422 | 423 | uci set uhttpd.main.interpreter='.php=/usr/bin/php-cgi'
|
423 | 424 | processes=$(uci commit && reload_config)
|
424 | 425 | wait $processes >> /root/install_customice.log
|
| 426 | + /etc/init.d/uhttpd restart >> /root/install_customice.log |
| 427 | + /etc/init.d/network restart >> /root/install_customice.log |
| 428 | + echo 'On Error enter logread' |
| 429 | + echo |
| 430 | + |
425 | 431 | }
|
426 | 432 |
|
427 | 433 | #-------------------------start---------------------------------------
|
|
0 commit comments