From ccfa56ad5e28ba1c43ccd3e53a97b003f321c414 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 15 Nov 2020 10:02:13 +0100 Subject: [PATCH] bundles/pppd: also wait for ppp interface to vanish before restarting --- bundles/pppd/files/wait-until-stopped | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bundles/pppd/files/wait-until-stopped b/bundles/pppd/files/wait-until-stopped index 03fe333..9d84c67 100644 --- a/bundles/pppd/files/wait-until-stopped +++ b/bundles/pppd/files/wait-until-stopped @@ -1,5 +1,18 @@ #!/bin/bash +( + while true + do + ip link show | grep ppp + if [[ $? -eq 0 ]] + then + sleep 1 + else + exit 0 + fi + done +) & + % for service in sorted(services): ( while true