2020-11-15 08:56:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-11-15 09:02:13 +00:00
|
|
|
(
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
ip link show | grep ppp
|
|
|
|
if [[ $? -eq 0 ]]
|
|
|
|
then
|
|
|
|
sleep 1
|
|
|
|
else
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
) &
|
|
|
|
|
2020-11-15 08:56:06 +00:00
|
|
|
% for service in sorted(services):
|
|
|
|
(
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
if systemctl is-active ${service}
|
|
|
|
then
|
|
|
|
sleep 1
|
|
|
|
else
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
) &
|
|
|
|
% endfor
|
|
|
|
|
|
|
|
wait
|