Skip to content

Commit

Permalink
Changed FTP server to Pure-FTPd.
Browse files Browse the repository at this point in the history
Fixed bugs with regards to Dropbear SSH support.
Made startup script more generic to decrease firmware filesize.
Small documentation fixes.
  • Loading branch information
shadow-1 committed Dec 23, 2017
1 parent ad51cb2 commit 6bbf6ba
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Currently this project supports:
Special thanks for [GearBest](www.gearbest.com) for generously donating a Yi Dome camera so I could further develop this firmware. Without having a camera to develop on, it would not have been possible to develop past the initial firmware releases.
Consider having a look at the following special GearBest links:
* [Yi Home](https://www.gearbest.com/ip-cameras/pp_193393.html?lkid=11854175 "GearBest Yi Home")
* [Yi Home 2](https://www.gearbest.com/ip-cameras/pp_340801.html?lkid=11854194 "GearBest Yi Home 2")
* [MiJia Smart Camera](https://www.gearbest.com/ip-cameras/pp_615275.html?lkid=11854258 "GearBest MiJia Smart Camera")
* [MiJia Smart 720p](https://www.gearbest.com/ip-cameras/pp_633879.html?lkid=12428807 "GearBest MiJia Smart 720p Camera")

I would like to also thank the following projects for their efforts on other Xiaomi cameras and giving inspiration for me to develop and publish my own custom firmware.

Expand Down Expand Up @@ -63,7 +63,7 @@ This firmware includes Proxychains-ng. This allows communication between the cam
Performance is not degraded as the cameras video/audio feed is not routed through the proxy server.

## Getting Started - Step by Step Guide
1. Check that you have a correct Xiaomi Yi camera. Currently 4 cameras are supported:
1. Check that you have a correct Xiaomi Yi camera. Currently four (4) series of cameras are supported:
* Yi Home 17CN / 27US / 47US Camera
* Yi 1080p Home Camera
* Yi Dome Camera
Expand Down
Binary file modified download_proxy_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified download_proxy_list_completed_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/home/yi-hack-v3/script/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ get_config()

if [ -d "/usr/yi-hack-v3" ]; then
export LD_LIBRARY_PATH=/home/libusr:$LD_LIBRARY_PATH:/usr/yi-hack-v3/lib
export PATH=$PATH:/usr/yi-hack-v3/bin
export PATH=$PATH:/usr/yi-hack-v3/bin:/usr/yi-hack-v3/sbin
elif [ -d "/home/yi-hack-v3" ]; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/lib:/home/yi-hack-v3/lib
export PATH=$PATH:/home/base/tools:/home/yi-hack-v3/bin
export PATH=$PATH:/home/base/tools:/home/yi-hack-v3/bin:/home/yi-hack-v3/sbin
fi

hostname -F $YI_HACK_V3_PREFIX/yi-hack-v3/etc/hostname
Expand All @@ -33,11 +33,11 @@ if [[ $(get_config TELNETD) == "yes" ]] ; then
fi

if [[ $(get_config FTPD) == "yes" ]] ; then
tcpsvd -vE 0.0.0.0 21 ftpd -w &
pure-ftpd -B
fi

if [[ $(get_config DROPBEAR) == "yes" ]] ; then
dropbear
dropbear -R
fi

if [ -f "/tmp/sd/startup.sh" ]; then
Expand Down
6 changes: 6 additions & 0 deletions src/home/yi-hack-v3/script/system_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ DHCP_SCRIPT_DEST="/home/app/script/wifidhcp.sh"
UDHCP_SCRIPT="$YI_HACK_V3_PREFIX/yi-hack-v3/default.script"
DHCP_SCRIPT="$YI_HACK_V3_PREFIX/yi-hack-v3/wifidhcp.sh"

files=`find $YI_PREFIX -maxdepth 1 -name "*.7z"`
if [ ${#files[@]} -gt 0 ]; then
/home/base/tools/7za x "$YI_PREFIX/*.7z" -y -o$YI_PREFIX
rm $YI_PREFIX/*.7z
fi

if [ -f $ARCHIVE_FILE ]; then
/home/base/tools/7za x $ARCHIVE_FILE -o$DESTDIR
rm $ARCHIVE_FILE
Expand Down
9 changes: 8 additions & 1 deletion src/home/yi-hack-v3/www/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ <h1>System Configuration</h1>
var httpd_enabled;
var telnetd_enabled;
var ftpd_enabled;
var dropbear_enabled;

if (document.getElementById("PROXYCHAINSNG_yes").checked == true) {
proxychainsng_enabled = "yes";
Expand All @@ -273,8 +274,14 @@ <h1>System Configuration</h1>
} else {
ftpd_enabled = "no";
}

if (document.getElementById("DROPBEAR_yes").checked == true) {
dropbear_enabled = "yes";
} else {
dropbear_enabled = "no";
}

message = "SAVE_CONFIG\nproxychainsng_enabled=" + proxychainsng_enabled + "\nhttpd_enabled=" + httpd_enabled + "\ntelnetd_enabled=" + telnetd_enabled + "\nftpd_enabled=" + ftpd_enabled + "\nhostname=" + document.getElementById("hostname_text").value;
message = "SAVE_CONFIG\nproxychainsng_enabled=" + proxychainsng_enabled + "\nhttpd_enabled=" + httpd_enabled + "\ntelnetd_enabled=" + telnetd_enabled + "\nftpd_enabled=" + ftpd_enabled + "\ndropbear_enabled=" + dropbear_enabled + "\nhostname=" + document.getElementById("hostname_text").value;

socket_info.send(message);
}
Expand Down

0 comments on commit 6bbf6ba

Please sign in to comment.