Restore dns after tunnel down

This commit is contained in:
Eldwan Brianne
2021-03-14 11:56:50 +01:00
parent f0ec423f4d
commit e0f2cae85a
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
#!/bin/bash
/etc/deluge/stop.sh
if [ "${PEER_DNS}" != "no" ]; then
if [ -e /etc/resolv.conf-"${dev}".sv ] ; then
cp /etc/resolv.conf-"${dev}".sv /etc/resolv.conf
fi
chmod 644 /etc/resolv.conf
fi
/etc/deluge/stop.sh "$@"