-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdroidbox
More file actions
30 lines (28 loc) · 883 Bytes
/
Copy pathdroidbox
File metadata and controls
30 lines (28 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
if [ $# -eq 0 ]
then
echo "Empty argument, use --help to see available arguments"
elif [ $1 = "--start" ]
then
echo "Starting Termux-x11..."
termux-x11 :0 &>/dev/null & pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1 &>/dev/null
echo ""
echo -e "Termux-x11 started"
echo ""
echo "Starting Droidbox..."
$PREFIX/bin/start-droidbox
pkill -f "app_process / com.termux.x11"
elif [ $1 = "--version" ]
then
echo "1.0"
elif [ $1 = "--help" ]
then
echo "Droidbox, Rootfs, Wine Proton, DXVK and Adreno GPU drivers for Android"
echo "Usage: debian {argument}"
echo "Available arguments:"
echo "--start - start Droidbox"
echo "--version - show current version of Droidbox"
echo "--help - see available arguments"
else
echo "Invalid argument, use --help to see available arguments"
fi