ubuntu restart network manager when ping is low code example
Example: ubuntu restart network manager when ping is low
start on started network-manager
stop on runlevel [016]
script
while true; do
if ifconfig eth0 | grep -q "inet addr:"; then
# echo "all ok!"
else
restart network-manager
fi
sleep 5
done
end script