Restore dns after tunnel down
This commit is contained in:
@@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user