-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
eb31610
commit a1cb3fe
Showing
3 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
if [ "$1" == "--tty" ]; then | ||
echo "Are you sure you want to reset the VSO? This will remove all your installed software in the subsystem. [y/N]" | ||
read -r answer | ||
if [ "$answer" == "y" ]; then | ||
podman rm -f apx-vso-pico | ||
blackbox-terminal | ||
fi | ||
else | ||
adwdialog --title "Reset VSO?" \ | ||
--description "Are you sure you want to reset the VSO? This will remove all your installed software in the subsystem." \ | ||
--type "question" \ | ||
--icon "org.vanillaos.VSO" | ||
if [ $? -eq 0 ]; then | ||
podman rm -f apx-vso-pico | ||
blackbox-terminal | ||
fi | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
is_network_online() { | ||
nmcli -t g | grep -q "connected" | ||
return $? | ||
} | ||
|
||
retry_count=0 | ||
max_retries=30 | ||
|
||
until is_network_online; do | ||
if [ $retry_count -ge $max_retries ]; then | ||
echo "Network not available after 1 minute. Exiting." | ||
exit 1 | ||
fi | ||
echo "Waiting for network..." | ||
sleep 2 | ||
((retry_count++)) | ||
done | ||
|
||
echo "Network is online." |
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 @@ | ||
#!/usr/bin/bash | ||
|
||
if [[ -f /run/.containerenv ]]; then | ||
/usr/bin/waydroid "$@" | ||
exit | ||
fi | ||
|
||
if [[ "$1" == "app" ]]; then | ||
/usr/bin/vso android launch "$3" | ||
fi | ||
|