blob: 04a30eb0c0b64c79ac8854d32943c7a8f89e7fef (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
DEV=$(cat /etc/novpn | grep DEV | awk '{print $2}')
until ip link show $DEV | grep "UP"; do
echo "Waiting for device $DEV to be UP..."
sleep 1;
done
echo "Device $DEV is finally up."
|