-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ipk: | ||
$(MAKE) -C ipk clean | ||
$(MAKE) -C ipk | ||
|
||
clean: | ||
$(MAKE) -C ipk clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
NAME = $(shell cat ./control/control | grep Package | cut -d" " -f2) | ||
ARCH = $(shell cat ./control/control | grep Architecture | cut -d" " -f2) | ||
VERSION = $(shell cat ./control/control | grep Version | cut -d" " -f2) | ||
IPK_NAME = "${NAME}_${VERSION}_${ARCH}.ipk" | ||
|
||
all: | ||
mkdir -p tmp | ||
echo "2.0" > tmp/debian-binary | ||
cp -r data tmp/ | ||
cp -r control tmp/ | ||
cd tmp/control && tar --owner=0 --group=0 -czvf ../control.tar.gz . | ||
cd tmp/data && tar --owner=0 --group=0 -czvf ../data.tar.gz . | ||
cd tmp/ && tar --owner=0 --group=0 -czvf "../${IPK_NAME}" ./control.tar.gz ./data.tar.gz ./debian-binary | ||
|
||
clean: | ||
rm -rf tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Package: wtfos-modloader-o3 | ||
Version: 0.1.5 | ||
Maintainer: Joonas Trussmann <[email protected]> | ||
Description: Enable modloader for O3 mode | ||
Architecture: pigeon-glasses-v2 | ||
Homepage: https://github.com/fpv-wtf/wtfos-modloader | ||
Depends: wtfos-modloader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/system/bin/sh | ||
|
||
if ! mount | grep -q "/dev/loop"; then | ||
echo "/system is not loopmounted. You shouldn't do this on your real /system." | ||
exit 1 | ||
fi | ||
|
||
cd /system/bin | ||
|
||
filename="dji_glasses" | ||
|
||
if [[ ! -f ${filename}_original ]] | ||
then | ||
cp ${filename} ${filename}_original | ||
fi | ||
|
||
ln -sf /opt/bin/modloader ${filename} | ||
mkdir -p /opt/etc/preload.d/${filename} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/system/bin/sh | ||
|
||
cd /system/bin | ||
|
||
filename="dji_glasses" | ||
|
||
if [[ -f ${filename}_original ]] | ||
then | ||
rm -f ${filename} | ||
cp ${filename}_original ${filename} | ||
fi |