liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 01fe2159b4a104438ad7ec8bfcd53a87704f9212
parent d7d19b5ed08bb8b046c5b07098dd5750d76de13d
Author: Daniel Barlow <dan@telent.net>
Date:   Mon, 31 Mar 2025 23:11:30 +0100

ppp: write ifindex as output

because what happens if the service is restarted but the new ppp0 is
a different interface than the old one so that services which had
bound to it with the old name are now not getting new data

(I am not 100% that this actually happens but it seems like it would
be good to avoid it if it does)

Diffstat:
Mmodules/ppp/common.nix | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/modules/ppp/common.nix b/modules/ppp/common.nix @@ -36,6 +36,7 @@ let echo $3 > speed echo $4 > address echo $5 > peer-address + cat /sys/class/net/$1/ifindex > ifindex set +o nounset if test -n "''${DNS1}" ;then echo ''${DNS1} > ns1 ; fi if test -n "''${DNS2}" ;then echo ''${DNS2} > ns2 ; fi