Skip to content

Commit 00d4f69

Browse files
committed
index.html umbenennen und Anpassungen an rc.local-Skript vornehmen
1 parent b2c97fa commit 00d4f69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Install/customize_firmware.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22
clear
3+
mv /www/index.html /www/index.old
34
release=$(cat /etc/openwrt_release | grep "DISTRIB_RELEASE" | cut -f2 -d '=')
45
revision=$(cat /etc/openwrt_release | grep "DISTRIB_REVISION" | cut -f2 -d '=')
56
revision=${revision::-1}
@@ -343,7 +344,7 @@ set_uhttpd >> install.log
343344
cat << EOF > /etc/rc.local
344345
if [ ! -f /root/openWRT23_install.sh ]
345346
then
346-
rm /www/index.html && sleep 20
347+
rm /www/index.html && sleep 20
347348
# 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
348349
wget --waitretry=10 -t 5 -O /root/openWRT23_install.sh https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/Install/openWRT23_install.sh
349350
wget https://github.com/CyberAndi/CyberSecurity-Box/raw/CyberSecurity-Box/www/index.php -P /www/
@@ -354,7 +355,7 @@ cat << EOF > /etc/rc.local
354355
fi
355356
if [ ! -f /root/run ]
356357
then
357-
echo $(date) > /root/run
358+
echo "'"$(date)"'" > /root/run
358359
exit 0
359360
fi
360361
rm /etc/rc.local

0 commit comments

Comments
 (0)