forked from funnyplayed666/DogeLand-App
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Your Name
committed
May 23, 2021
1 parent
bba18b1
commit 706b356
Showing
21 changed files
with
57 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
exec_fullns(){ | ||
echo "progress:[1/1]" | ||
check_rootfs | ||
set_env | ||
export unshare="exec $TOOLKIT/bin/unshare $addcmd --mount --uts --ipc --net --pid --cgroup --mount-proc -R $rootfs " | ||
if [ -f "$rootfs/bin/su" ];then | ||
$unshare /bin/su -c $cmd2 | ||
else | ||
if [ -f "$rootfs/bin/sh" ];then | ||
$unshare /bin/sh $cmd2 | ||
else | ||
if [ -f "$rootfs/bin/ash" ];then | ||
$unshare /bin/ash $cmd2 | ||
else | ||
if [ -f "$rootfs/bin/bash" ];then | ||
$unshare /bin/bash $cmd2 | ||
else | ||
if [ -f "$rootfs/bin/fish" ];then | ||
$unshare /bin/fish $cmd2 | ||
else | ||
$unshare $cmd2 | ||
fi | ||
echo "">/dev/null | ||
fi | ||
echo "">/dev/null | ||
fi | ||
echo "">/dev/null | ||
fi | ||
echo "">/dev/null | ||
fi | ||
} |
16 changes: 16 additions & 0 deletions
16
app/src/main/assets/app_xbin/bin/include/starter_fullns.sh
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 @@ | ||
start_fullns(){ | ||
echo "progress:[1/1]" | ||
check_rootfs | ||
# Check RunStatus | ||
if [[ "$(cat $rootfs/boot/dogeland/status)" != "Stop" ]] | ||
then | ||
# if Run,Then Stop | ||
stop_rootfs | ||
else | ||
# Start Process | ||
echo "Starting" | ||
set_env | ||
echo "Run">$rootfs/boot/dogeland/status | ||
exec $TOOLKIT/bin/unshare $addcmd --mount --uts --ipc --net --pid --cgroup --mount-proc -R $rootfs $cmd | ||
fi | ||
} |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.5 KB
app/src/main/assets/app_xbin/preload_res/lib/x86/libandroid-shmem.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
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