Skip to content

Commit

Permalink
Add missing include executables
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwelldoug committed Jul 27, 2024
1 parent eb31610 commit a1cb3fe
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
19 changes: 19 additions & 0 deletions includes.container/usr/bin/reset-vso
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
21 changes: 21 additions & 0 deletions includes.container/usr/bin/wait-for-connection
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."
11 changes: 11 additions & 0 deletions includes.container/usr/bin/waydroid
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

0 comments on commit a1cb3fe

Please sign in to comment.