Skip to content

Commit 7719a0e

Browse files
committed
deactivate uhttpd
1 parent 15dc0aa commit 7719a0e

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

Install/customize_firmware.sh

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22
clear
3+
/etc/init.d/uhttpd stop >> /root/install_customice.log
34
mv /www/index.html /www/index.old
45
release=$(grep "DISTRIB_RELEASE" /etc/openwrt_release | cut -f2 -d '=')
56
revision=$(grep "DISTRIB_REVISION" /etc/openwrt_release | cut -f2 -d '=')
@@ -113,7 +114,7 @@ check_download() {
113114

114115
wget --waitretry=10 -t 5 -O "/root/$OUTPUT_FILE" "$URL"
115116

116-
if [[ $? -eq 0 ]]; then
117+
wait && if [[ $? -eq 0 ]]; then
117118
if check_hash "$OUTPUT_FILE"; then
118119
echo "Hash is okay" >> /root/install_customice.log
119120
break
@@ -174,8 +175,8 @@ uci set uhttpd.main.index_page='index.php'
174175
uci set uhttpd.main.interpreter='.php=/usr/bin/php-cgi'
175176
processes=$(uci commit && reload_config)
176177
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
179180
echo
180181
echo 'Default Country-Settings'
181182
echo
@@ -422,6 +423,11 @@ set_uhttpd() {
422423
uci set uhttpd.main.interpreter='.php=/usr/bin/php-cgi'
423424
processes=$(uci commit && reload_config)
424425
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+
425431
}
426432

427433
#-------------------------start---------------------------------------

customize_firmware.sh

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22
clear
3+
/etc/init.d/uhttpd stop >> /root/install_customice.log
34
mv /www/index.html /www/index.old
45
release=$(grep "DISTRIB_RELEASE" /etc/openwrt_release | cut -f2 -d '=')
56
revision=$(grep "DISTRIB_REVISION" /etc/openwrt_release | cut -f2 -d '=')
@@ -113,7 +114,7 @@ check_download() {
113114

114115
wget --waitretry=10 -t 5 -O "/root/$OUTPUT_FILE" "$URL"
115116

116-
if [[ $? -eq 0 ]]; then
117+
wait && if [[ $? -eq 0 ]]; then
117118
if check_hash "$OUTPUT_FILE"; then
118119
echo "Hash is okay" >> /root/install_customice.log
119120
break
@@ -174,8 +175,8 @@ uci set uhttpd.main.index_page='index.php'
174175
uci set uhttpd.main.interpreter='.php=/usr/bin/php-cgi'
175176
processes=$(uci commit && reload_config)
176177
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
179180
echo
180181
echo 'Default Country-Settings'
181182
echo
@@ -422,6 +423,11 @@ set_uhttpd() {
422423
uci set uhttpd.main.interpreter='.php=/usr/bin/php-cgi'
423424
processes=$(uci commit && reload_config)
424425
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+
425431
}
426432

427433
#-------------------------start---------------------------------------

0 commit comments

Comments
 (0)