@@ -15,7 +15,6 @@ target=${target::-1}
15
15
architecture=${architecture: 1}
16
16
target=${target: 1}
17
17
18
-
19
18
LOCALADDRESS=" 127.192.0.1/10"
20
19
21
20
actLoop=$( ifconfig | grep ' ^l\w*' -m 1 | cut -f1 -d ' ' )
@@ -58,7 +57,6 @@ WAN_MOBILE_GW=$(echo $INET_GW | cut -f1 -d '.')
58
57
WAN_MOBILE_GW=$WAN_ip ' .' $( echo $INET_GW | cut -f2 -d ' .' )
59
58
WAN_MOBILE_GW=$WAN_ip ' .' $( echo $INET_GW | cut -f3 -d ' .' ) ' .253'
60
59
61
-
62
60
# complet Internet
63
61
Internet=" 0.0.0.0/0"
64
62
@@ -117,9 +115,8 @@ check_download() {
117
115
else
118
116
# echo "Hash-Error"
119
117
rm -f " $OUTPUT_FILE "
120
- fi
121
- fi
122
-
118
+ fi
119
+ fi
123
120
}
124
121
125
122
customize_firmware () {
@@ -171,14 +168,13 @@ uci set wireless.default_radio1.ssid='CyberSec-Box'
171
168
uci set uhttpd.main.index_page=' index.php'
172
169
uci set uhttpd.main.interpreter=' .php=/usr/bin/php-cgi'
173
170
processes=$( uci commit && reload_config)
174
- wait $processes >> install .log
175
- /etc/init.d/uhttpd restart >> install .log
176
- /etc/init.d/network restart >> install .log
171
+ wait $processes >> install_customice .log
172
+ /etc/init.d/uhttpd restart >> install_customice .log
173
+ /etc/init.d/network restart >> install_customice .log
177
174
echo
178
175
echo ' Default Country-Settings'
179
176
echo
180
177
181
-
182
178
echo
183
179
echo ' https activated'
184
180
echo
@@ -314,9 +310,9 @@ create_hotspot(){
314
310
uci set wireless.radio0.country=' DE'
315
311
uci set wireless.radio0.channel=' auto'
316
312
uci set wireless.radio0.hwmode=' 11n'
317
- uci delete wireless.radio0.disabled >> install .log
313
+ uci delete wireless.radio0.disabled >> install_customice .log
318
314
processes=$( uci commit && reload_config)
319
- wait $processes >> install .log
315
+ wait $processes >> install_customice .log
320
316
if [ ! -d " $FILE " ]
321
317
then
322
318
create_hotspot_sub
@@ -418,35 +414,35 @@ set_uhttpd() {
418
414
uci set uhttpd.main.index_page=' index.php'
419
415
uci set uhttpd.main.interpreter=' .php=/usr/bin/php-cgi'
420
416
processes=$( uci commit && reload_config)
421
- wait $processes >> install .log
417
+ wait $processes >> install_customice .log
422
418
}
423
419
424
420
# -------------------------start---------------------------------------
425
421
426
422
echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S' :' %N) ' Starting...'
427
- echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S' :' %N) ' Starting...' >> install .log
423
+ echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S' :' %N) ' Starting...' >> install_customice .log
428
424
echo
429
- echo >> install .log
425
+ echo >> install_customice .log
430
426
echo $main_release
431
427
echo
432
428
echo ' Automation Install'
433
429
echo
434
- echo >> install .log
430
+ echo >> install_customice .log
435
431
echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Customize Firmware'
436
- echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Customize Firmware' >> install .log
437
- customize_firmware >> install .log
432
+ echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Customize Firmware' >> install_customice .log
433
+ customize_firmware >> install_customice .log
438
434
439
435
echo
440
- echo >> install .log
436
+ echo >> install_customice .log
441
437
echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Create Hotspot'
442
- echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Create Hotspot' >> install .log
443
- create_hotspot >> install .log
438
+ echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Create Hotspot' >> install_customice .log
439
+ create_hotspot >> install_customice .log
444
440
445
441
echo
446
- echo >> install .log
442
+ echo >> install_customice .log
447
443
echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Set uhttpd'
448
- echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Set uhttpd' >> install .log
449
- set_uhttpd >> install .log
444
+ echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Set uhttpd' >> install_customice .log
445
+ set_uhttpd >> install_customice .log
450
446
451
447
cat << EOF > /etc/rc.local
452
448
if [ ! -f /root/openWRT23_install.sh ] && [ ! -f www/luci-static/bootstrap/cascade.css ]
0 commit comments