Skip to content

Commit f282f6e

Browse files
committed
[+] Update cloudAPI if necessary
Changes to be committed: modified: src/static/static/home/yi-hack-v5/script/system.sh
1 parent f990436 commit f282f6e

File tree

1 file changed

+6
-1
lines changed
  • src/static/static/home/yi-hack-v5/script

1 file changed

+6
-1
lines changed

src/static/static/home/yi-hack-v5/script/system.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# 0.4.1c
3+
# 0.4.1d
44

55
CONF_FILE="etc/system.conf"
66

@@ -91,6 +91,11 @@ if [[ "$(grep -m 3 -n '' /home/app/cloudAPI_fake | tail -n 1 | cut -d ':' -f 2 |
9191
cp -f $YI_HACK_PREFIX/script/cloudAPI_fake /home/app/
9292
fi
9393

94+
# Update cloudAPI if necessary
95+
if [[ "$(grep -m 3 -n '' /home/app/cloudAPI | tail -n 1 | cut -d ':' -f 2 | cut -c 3-)" != "$(grep -m 3 -n '' $YI_HACK_PREFIX/script/cloudAPI | tail -n 1 | cut -d ':' -f 2 | cut -c 3-)" ]]; then
96+
cp -f $YI_HACK_PREFIX/script/cloudAPI /home/app/
97+
fi
98+
9499
# Manual Wi-Fi config
95100
if [ -f /tmp/sd/recover/configure_wifi.cfg ]; then
96101
mv /tmp/sd/recover/configure_wifi.cfg /tmp/configure_wifi.cfg

0 commit comments

Comments
 (0)