diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-10-10 23:28:47 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-26 19:12:45 +0000 |
commit | 0dea82c967956fea4305cdc0da09303679072a01 (patch) | |
tree | bde8843240326ab3f76968e3f6a271eca70afd54 /vm | |
parent | bf36d81385314ba454125c9c6909a6d3cf70fca9 (diff) | |
download | spectrum-0dea82c967956fea4305cdc0da09303679072a01.tar spectrum-0dea82c967956fea4305cdc0da09303679072a01.tar.gz spectrum-0dea82c967956fea4305cdc0da09303679072a01.tar.bz2 spectrum-0dea82c967956fea4305cdc0da09303679072a01.tar.lz spectrum-0dea82c967956fea4305cdc0da09303679072a01.tar.xz spectrum-0dea82c967956fea4305cdc0da09303679072a01.tar.zst spectrum-0dea82c967956fea4305cdc0da09303679072a01.zip |
img/app: don't block app startup on network online
Not all VMs will even have networking! So it makes more sense to put waiting for the network in the application-specific part. The "listen" and "wait" scripts are copied from the host system. Signed-off-by: Alyssa Ross <hi@alyssa.is> Message-Id: <20221010232909.1953738-8-hi@alyssa.is>
Diffstat (limited to 'vm')
-rw-r--r-- | vm/app/catgirl.nix | 1 | ||||
-rw-r--r-- | vm/app/lynx.nix | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/vm/app/catgirl.nix b/vm/app/catgirl.nix index 7cd76a9..755852b 100644 --- a/vm/app/catgirl.nix +++ b/vm/app/catgirl.nix @@ -9,6 +9,7 @@ import ../make-vm.nix { inherit config; } { { writeScript, catgirl }: writeScript "run-catgirl" '' #!/bin/execlineb -P + if { /etc/mdev/wait network-online } foreground { printf "IRC nick (to join #spectrum): " } backtick -E nick { head -1 } ${catgirl}/bin/catgirl -h irc.libera.chat -j "#spectrum" -n $nick diff --git a/vm/app/lynx.nix b/vm/app/lynx.nix index 21cb56e..d4560f4 100644 --- a/vm/app/lynx.nix +++ b/vm/app/lynx.nix @@ -9,6 +9,7 @@ import ../make-vm.nix { inherit config; } { { writeScript, lynx }: writeScript "run-lynx" '' #!/bin/execlineb -P + if { /etc/mdev/wait network-online } ${lynx}/bin/lynx https://spectrum-os.org '' ) { }; |