Skip to content

Commit d4466ff

Browse files
authored
Merge pull request #341 from alienatedsec/pre-release-0.4.1x
Pre release 0.4.1x
2 parents 38c0cf6 + 8d13a5c commit d4466ff

File tree

131 files changed

+3721
-25985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+3721
-25985
lines changed

.gitmodules

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
path = src/uClibc/uClibc
77
url = https://github.com/kraj/uClibc.git
88
ignore = dirty
9-
[submodule "src/busybox/busybox"]
10-
path = src/busybox/busybox
11-
url = https://github.com/mirror/busybox.git
12-
ignore = dirty
139
[submodule "src/proxychains-ng/proxychains-ng"]
1410
path = src/proxychains-ng/proxychains-ng
1511
url = https://github.com/rofl0r/proxychains-ng.git
@@ -26,10 +22,6 @@
2622
path = src/mosquitto/mosquitto
2723
url = https://github.com/eclipse/mosquitto.git
2824
ignore = dirty
29-
[submodule "src/wsdd/wsdd"]
30-
path = src/wsdd/wsdd
31-
url = https://github.com/KoynovStas/wsdd.git
32-
ignore = dirty
3325
[submodule "src/libfuse/libfuse"]
3426
path = src/libfuse/libfuse
3527
url = https://github.com/libfuse/libfuse.git
@@ -42,3 +34,6 @@
4234
path = src/curl/curl
4335
url = https://github.com/curl/curl
4436
ignore = dirty
37+
[submodule "src/onvif_simple_server/onvif_simple_server"]
38+
path = src/onvif_simple_server/onvif_simple_server
39+
url = https://github.com/roleoroleo/onvif_simple_server

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
The answer is simple: missing updates, RTSP, and not based on the latest stock firmware (which features improvements and new cool stuff).
1616
Besides, there were no updates to `yi-hack-v4`, and I am against that RTSP licensing model. I have contributed enough and will continue my work separately.
1717

18-
I am slowly releasing beta versions, and I can see lots of downloads, testing and contributions. A big thank you to the community.
18+
I am slowly working on pre-release versions, and I can see lots of downloads, testing and contributions. A big thank you to the community.
1919

2020
## Table of Contents
2121

@@ -109,7 +109,7 @@ Alternative way:
109109

110110
</p></details>
111111

112-
3. Get the correct firmware files for your camera from the latest baseline release link: https://github.com/alienatedsec/yi-hack-v5/releases/tag/0.3.8
112+
3. Get the correct firmware files for your camera from the latest baseline release link: https://github.com/alienatedsec/yi-hack-v5/releases/tag/0.4.1
113113

114114
| Camera | rootfs partition | home partition | Remarks |
115115
| --- | --- | --- | --- |
@@ -138,7 +138,7 @@ Depending upon your network setup, accessing the web interface with the hostname
138138

139139
This can be done from the App. Please open the app, and go to the Camera Settings --> Network Info --> IP Address.
140140

141-
Access the web interface by entering the IP address of the camera in a web browser. e.g. `http://192.168.1.5:8080`
141+
Access the web interface by entering the IP address of the camera in a web browser. e.g. `http://192.168.1.5`
142142

143143
**_IMPORTANT: If you have multiple cameras. It is important to configure each camera with a unique hostname. Otherwise, the web interface will only be accessible by IP address._**
144144

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.0
1+
0.4.1g

scripts/compile.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ compile_module()
3939
printf "MOD_COMPILE: %s\n" "$MOD_COMPILE"
4040
printf "MOD_INSTALL: %s\n" "$MOD_INSTALL"
4141

42+
echo "Compile $MOD_NAME"
4243
cd "$MOD_DIR"
4344

4445
if [ ! -f $MOD_INIT ]; then
@@ -89,10 +90,22 @@ mkdir -p "$(get_script_dir)/../build/home"
8990
mkdir -p "$(get_script_dir)/../build/rootfs"
9091

9192
SRC_DIR=$(get_script_dir)/../src
93+
SELECTED_MODULE=$1
94+
if [ -n ${SELECTED_MODULE} ]; then
95+
echo "SELECTED_MODULE: $SELECTED_MODULE"
96+
fi
9297

9398
for SUB_DIR in $SRC_DIR/* ; do
9499
if [ -d ${SUB_DIR} ]; then # Will not run if no directories are available
95-
compile_module $(normalize_path "$SUB_DIR") || exit 1
100+
if [ -n ${SELECTED_MODULE} ]; then
101+
if [[ $SUB_DIR == *"$SELECTED_MODULE"* ]]; then
102+
compile_module $(normalize_path "$SUB_DIR") || exit 1
103+
else
104+
echo "Skip $SUB_DIR"
105+
fi
106+
else
107+
compile_module $(normalize_path "$SUB_DIR") || exit 1
108+
fi
96109
fi
97110
done
98111

scripts/pack_fw.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# This file is part of yi-hack-v5 (https://github.com/alienatedsec/yi-hack-v5).
55
# Copyright (c) 2018-2019 Davide Maggioni - v4 specific
6-
# Copyright (c) 2021-2023 alienatedsec - v5 specific
6+
# Copyright (c) 2021-2024 alienatedsec - v5 specific
77
#
88
# This program is free software: you can redistribute it and/or modify
99
# it under the terms of the GNU General Public License as published by
@@ -206,6 +206,10 @@ compress_file "$TMP_DIR/home/app" cloudAPI
206206
compress_file "$TMP_DIR/home/app" oss
207207
compress_file "$TMP_DIR/home/app" p2p_tnp
208208
compress_file "$TMP_DIR/home/app" rmm
209+
compress_file "$TMP_DIR/home/base/tools" wpa_supplicant
210+
compress_file "$TMP_DIR/home/base/tools" wpa_passphrase
211+
compress_file "$TMP_DIR/home/base/tools" wpa_cli
212+
compress_file "$TMP_DIR/home/lib" libcrypto.so.1.1
209213

210214
# Compress the yi-hack-v5 folder
211215
printf "Compressing yi-hack-v5... "
@@ -223,18 +227,24 @@ rm $TMP_DIR/home/yi-hack-v5/yi-hack-v5.7z
223227
echo "Deleteing of yi-hack-v5.7z - done!"
224228

225229
# Delete all the compressed files except system_init.sh and yi-hack-v5.7z
230+
#find $TMP_DIR/home/yi-hack-v5/* -maxdepth 0 -type d ! -name 'script' -exec rm -rf {} +
226231
find $TMP_DIR/home/yi-hack-v5/script/ -maxdepth 0 ! -name 'system_init.sh' -type f -exec rm -f {} +
227-
find $TMP_DIR/home/yi-hack-v5/* -maxdepth 0 -type d ! -name 'script' -exec rm -rf {} +
232+
find $TMP_DIR/home/yi-hack-v5/* -maxdepth 0 -type d ! \( -name 'script' -o -name 'etc' -o -name 'lib' \) -exec rm -rf {} \;
233+
find $TMP_DIR/home/yi-hack-v5/lib/ -type f ! -name 'ipc_multiplex.so' -exec rm -f {} \;
228234
find $TMP_DIR/home/yi-hack-v5/* -maxdepth 0 -type f ! -name 'version' -exec rm {} +
235+
236+
# Delete the old wpa_supplicant upgrade file from the image so it wont override the release version
237+
find $TMP_DIR/home/app/ -type f -name 'wpa_supplicant' -exec rm -f {} \;
238+
229239
printf "done!\n\n"
230240

231241
# home
232242
# Disabled after 0.3.8
233-
#pack_image "home" $CAMERA_ID $TMP_DIR $OUT_DIR
243+
pack_image "home" $CAMERA_ID $TMP_DIR $OUT_DIR
234244

235245
# rootfs
236246
# Disabled after 0.3.8
237-
#pack_image "rootfs" $CAMERA_ID $TMP_DIR $OUT_DIR
247+
pack_image "rootfs" $CAMERA_ID $TMP_DIR $OUT_DIR
238248

239249
# pack files for release
240250
pack_files $WORK_DIR $CAMERA_NAME $VERSION_ID
@@ -247,4 +257,3 @@ printf "done!\n\n"
247257
echo "------------------------------------------------------------------------"
248258
echo " Finished!"
249259
echo "------------------------------------------------------------------------"
250-

0 commit comments

Comments
 (0)