Skip to content

Commit

Permalink
Testing simplified s6v3 config
Browse files Browse the repository at this point in the history
  • Loading branch information
1activegeek committed Jul 16, 2024
1 parent 5aaf186 commit 1df8abc
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 32 deletions.
23 changes: 0 additions & 23 deletions root/etc/s6-overlay/s6-rc.d/init-airconnect/airconnect-setup.sh

This file was deleted.

2 changes: 0 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/init-airconnect/run

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-airconnect/type

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-airconnect/up

This file was deleted.

Empty file.
2 changes: 0 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/svc-aircast/run

This file was deleted.

23 changes: 23 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-airconnect/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/with-contenv bash

# Check for VAR - default, kill, custom
if [ -z "$AIRUPNP_VAR" ]; then
echo "No AIRUPNP_VAR present, continuing with standard airupnp launch variables"
exec /bin/airupnp-linux-x86_64 -l 1000:2000
elif [ "$AIRUPNP_VAR" = "kill" ]; then
echo "AIRUPNP_VAR set to kill, skipping airupnp service launch"
else
echo "AIRUPNP_VAR present, using custom user airupnp launch variables"
exec /bin/airupnp-linux-x86_64 "$AIRUPNP_VAR"
fi

# Check for VAR - default, kill, custom
if [ -z "$AIRCAST_VAR" ]; then
echo "No AIRCAST_VAR present, continuing with standard aircast launch variables"
exec /bin/aircast-linux-x86_64
elif [ "$AIRCAST_VAR" = "kill" ]; then
echo "AIRCAST_VAR set to kill, skipping aircast service launch"
else
echo "AIRCAST_VAR present, using custom user aircast launch variables"
exec /bin/aircast-linux-x86_64 "$AIRCAST_VAR"
fi
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-airconnect/up
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/svc-airconnect/run
Empty file.
2 changes: 0 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/svc-airupnp/run

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-airupnp/type

This file was deleted.

Empty file.
Empty file.

0 comments on commit 1df8abc

Please sign in to comment.