File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
clear
3
+ mv /www/index.html /www/index.old
3
4
release=$( cat /etc/openwrt_release | grep " DISTRIB_RELEASE" | cut -f2 -d ' =' )
4
5
revision=$( cat /etc/openwrt_release | grep " DISTRIB_REVISION" | cut -f2 -d ' =' )
5
6
revision=${revision::- 1}
@@ -343,7 +344,7 @@ set_uhttpd >> install.log
343
344
cat << EOF > /etc/rc.local
344
345
if [ ! -f /root/openWRT23_install.sh ]
345
346
then
346
- rm /www/index.html && sleep 20
347
+ rm /www/index.html && sleep 20
347
348
# 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
348
349
wget --waitretry=10 -t 5 -O /root/openWRT23_install.sh https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/openWRT23_install.sh
349
350
wget https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/www/index.php -P /www/
@@ -354,7 +355,7 @@ cat << EOF > /etc/rc.local
354
355
fi
355
356
if [ ! -f /root/run ]
356
357
then
357
- echo $( date) > /root/run
358
+ echo "'" $( date) "'" > /root/run
358
359
exit 0
359
360
fi
360
361
rm /etc/rc.local
You can’t perform that action at this time.
0 commit comments