Skip to content

Commit

Permalink
Fixed errors in startup scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow-1 committed Jul 10, 2017
1 parent 8dbca05 commit 8b2de23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/home/yi-hack-v3/script/system_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ -f $ARCHIVE_FILE ]; then
rm $ARCHIVE_FILE
fi

if [ -f /home/app/cloudAPI_real ]; then
if [ ! -f /home/app/cloudAPI_real ]; then
mv /home/app/cloudAPI /home/app/cloudAPI_real
cp /home/yi-hack-v3/cloudAPI /home/app/
rm $DHCP_SCRIPT_DEST
Expand Down
7 changes: 0 additions & 7 deletions src/rootfs/etc/init.d/S20yi-hack-v3
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#!/bin/sh

ARCHIVE_FILE="/home/yi-hack-v3/yi-hack-v3.7z"

if [ -f $ARCHIVE_FILE ]; then
7za x $ARCHIVE_FILE
rm $ARCHIVE_FILE
fi

/home/yi-hack-v3/script/system.sh

0 comments on commit 8b2de23

Please sign in to comment.