Skip to content

Commit 3f15515

Browse files
authored
Update JitStreamer.sh
1 parent 7c4913c commit 3f15515

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

JitStreamer.sh

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
11
#!/bin/sh
22

3-
# Display welcome message
3+
# Display welcome message with additional information
44
echo "Welcome to JitStreamer!"
5+
echo "Starting the server. This might take a few seconds..."
56

6-
# Run tailscale up and let the user authenticate if needed
7+
# Run tailscale up
78
tailscale up
89

9-
# Check if tailscale authentication was successful
10-
if [ $? -ne 0 ]; then
11-
echo "Tailscale authentication failed. Please try again."
12-
exit 1
13-
fi
10+
# Get and display the Tailscale IPv4 address
11+
TAILSCALE_IP=$(tailscale ip -4)
12+
echo "This will be your server IP: $TAILSCALE_IP"
13+
14+
# Run usbmuxd
15+
usbmuxd
1416

1517
# Activate the virtual environment
1618
. ./venv/bin/activate
1719

18-
# Check if venv activation was successful
19-
if [ $? -ne 0 ]; then
20-
echo "Failed to activate virtual environment. Please check if it exists at ./venv/bin/activate"
21-
exit 1
22-
fi
23-
2420
# Run the JitStreamer binary
2521
/root/venv/bin/JitStreamer
26-
27-
# Check if JitStreamer execution was successful
28-
if [ $? -ne 0 ]; then
29-
echo "Failed to run JitStreamer. Please check if the binary exists at /root/venv/bin/JitStreamer"
30-
exit 1
31-
fi

0 commit comments

Comments
 (0)