@@ -168,9 +168,9 @@ uci set wireless.default_radio1.ssid='CyberSec-Box'
168
168
uci set uhttpd.main.index_page=' index.php'
169
169
uci set uhttpd.main.interpreter=' .php=/usr/bin/php-cgi'
170
170
processes=$( uci commit && reload_config)
171
- wait $processes >> install_customice.log
172
- /etc/init.d/uhttpd restart >> install_customice.log
173
- /etc/init.d/network restart >> install_customice.log
171
+ wait $processes >> /root/ install_customice.log
172
+ /etc/init.d/uhttpd restart >> /root/ install_customice.log
173
+ /etc/init.d/network restart >> /root/ install_customice.log
174
174
echo
175
175
echo ' Default Country-Settings'
176
176
echo
@@ -246,12 +246,12 @@ if [ ! -f "$FILE" ]
246
246
processes=$( rm /www/luci-static/resources/view/dashboard/css/c* .css)
247
247
wait $processes
248
248
fi
249
- process50=$( wget --waitretry=10 -t 5 -O /root/openWRT23_install.sh https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/openWRT23_install.sh)
249
+ process50=$( wget --waitretry=10 -t 5 -O /root/openWRT23_install.sh https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/openWRT23_install.sh >> /root/install_customice.log )
250
250
wait $process50
251
251
252
252
if [ " $( ls /www/luci-static/bootstrap/logo.svg) " != " " ]
253
253
then
254
- processes=$( rm /www/luci-static/bootstrap/logo* .* )
254
+ processes=$( rm /www/luci-static/bootstrap/logo* .* >> /root/install_customice.log )
255
255
wait $processes
256
256
fi
257
257
@@ -310,9 +310,9 @@ create_hotspot(){
310
310
uci set wireless.radio0.country=' DE'
311
311
uci set wireless.radio0.channel=' auto'
312
312
uci set wireless.radio0.hwmode=' 11n'
313
- uci delete wireless.radio0.disabled >> install_customice.log
313
+ uci delete wireless.radio0.disabled >> /root/ install_customice.log
314
314
processes=$( uci commit && reload_config)
315
- wait $processes >> install_customice.log
315
+ wait $processes >> /root/ install_customice.log
316
316
if [ ! -d " $FILE " ]
317
317
then
318
318
create_hotspot_sub
@@ -414,58 +414,58 @@ set_uhttpd() {
414
414
uci set uhttpd.main.index_page=' index.php'
415
415
uci set uhttpd.main.interpreter=' .php=/usr/bin/php-cgi'
416
416
processes=$( uci commit && reload_config)
417
- wait $processes >> install_customice.log
417
+ wait $processes >> /root/ install_customice.log
418
418
}
419
419
420
420
# -------------------------start---------------------------------------
421
421
422
422
echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S' :' %N) ' Starting...'
423
- echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S' :' %N) ' Starting...' >> install_customice.log
423
+ echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S' :' %N) ' Starting...' >> /root/ install_customice.log
424
424
echo
425
- echo >> install_customice.log
425
+ echo >> /root/ install_customice.log
426
426
echo $main_release
427
427
echo
428
428
echo ' Automation Install'
429
429
echo
430
- echo >> install_customice.log
430
+ echo >> /root/ install_customice.log
431
431
echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Customize Firmware'
432
- echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Customize Firmware' >> install_customice.log
433
- customize_firmware >> install_customice.log
432
+ echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Customize Firmware' >> /root/ install_customice.log
433
+ customize_firmware >> /root/ install_customice.log
434
434
435
435
echo
436
- echo >> install_customice.log
436
+ echo >> /root/ install_customice.log
437
437
echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Create Hotspot'
438
- echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Create Hotspot' >> install_customice.log
439
- create_hotspot >> install_customice.log
438
+ echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Create Hotspot' >> /root/ install_customice.log
439
+ create_hotspot >> /root/ install_customice.log
440
440
441
441
echo
442
- echo >> install_customice.log
442
+ echo >> /root/ install_customice.log
443
443
echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Set uhttpd'
444
- echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Set uhttpd' >> install_customice.log
445
- set_uhttpd >> install_customice.log
444
+ echo $( date +%d' .' %m' .' %y' ' %H' :' %M' :' %S) ' Set uhttpd' >> /root/ install_customice.log
445
+ set_uhttpd >> /root/ install_customice.log
446
446
447
447
cat << EOF > /etc/rc.local
448
448
if [ ! -f /root/openWRT23_install.sh ] && [ ! -f www/luci-static/bootstrap/cascade.css ]
449
449
then
450
- rm /www/index.html && sleep 20
450
+ rm /www/index.html && sleep 20 >> /root/install_rc_local.log
451
451
if [ ! -f /root/customize_firmware.sh ]
452
452
then
453
- wget --waitretry=10 -t 5 -O /root/customize_firmware.sh https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/customize_firmware.sh && sh /root/customize_firmware.sh & wait
453
+ wget --waitretry=10 -t 5 -O /root/customize_firmware.sh https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/customize_firmware.sh && sh /root/customize_firmware.sh >> /root/install_rc_local.log & wait
454
454
fi
455
- wget --waitretry=10 -t 5 -O /root/openWRT23_install.sh https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/openWRT23_install.sh
456
- wget https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/www/index.php -P /www/
457
- wget https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/www/output.php -P /www/
455
+ wget --waitretry=10 -t 5 -O /root/openWRT23_install.sh https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/openWRT23_install.sh >> /root/install_rc_local.log
456
+ wget https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/www/index.php -P /www/ >> /root/install_rc_local.log
457
+ wget https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/www/output.php -P /www/ >> /root/install_rc_local.log
458
458
else
459
- rm /root/*.sh
460
- rm /root/*.sh.*
459
+ rm /root/*.sh >> /root/install_rc_local.log
460
+ rm /root/*.sh.* >> /root/install_rc_local.log
461
461
fi
462
462
if [ ! -f /root/run ]
463
463
then
464
- echo "'"' $( date) "'" > /root/run
465
- rm /root/customize_firmware.sh
464
+ echo ' $( date) ' > /root/run >> /root/install_rc_local.log
465
+ rm /root/customize_firmware.sh >> /root/install_rc_local.log
466
466
exit 0
467
467
fi
468
- rm /etc/rc.local
468
+ rm /etc/rc.local >> /root/install_rc_local.log
469
469
echo "" > /www/phpinfo.php
470
470
echo "exit 0" > /etc/rc.local
471
471
EOF
0 commit comments