From b1625763ee6327d412796f001f166b28d4178944 Mon Sep 17 00:00:00 2001
From: Daniel Barlow <dan@telent.net>
Date: Wed, 16 Oct 2024 22:59:01 +0100
Subject: [PATCH] ppp service signal readiness only when ip-up has run

as downstream services need e.g. ifname which is not written by ipv6-up
---
 modules/ppp/common.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/ppp/common.nix b/modules/ppp/common.nix
index d4e3324e..746d7c69 100644
--- a/modules/ppp/common.nix
+++ b/modules/ppp/common.nix
@@ -33,7 +33,7 @@ let
      echo $4 > ipv6-address
      echo $5 > ipv6-peer-address
     )
-    echo >/proc/self/fd/10
+    test -e tty && echo >/proc/self/fd/10
   '';
   literal_or_output =
     let v = o: ({