summaryrefslogtreecommitdiff
path: root/pkg/linux/resolv-update
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2014-04-04 16:58:18 -0300
committerTomás Touceda <chiiph@leap.se>2014-04-04 16:58:18 -0300
commit81715dc47d77934c4f67d2527a56c28f58f0345d (patch)
tree6e66940af735e089803c5ce05ad1ce1df16c9d1e /pkg/linux/resolv-update
parent496036f15cf257d16b6594770812da64a249280c (diff)
parenteb4cdab9c6b8ff66bb4667cc6195d2c366122540 (diff)
Merge branch 'release-0.5.0'0.5.0
Diffstat (limited to 'pkg/linux/resolv-update')
-rwxr-xr-xpkg/linux/resolv-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/linux/resolv-update b/pkg/linux/resolv-update
index 601d3bd2..c308b788 100755
--- a/pkg/linux/resolv-update
+++ b/pkg/linux/resolv-update
@@ -70,7 +70,7 @@ SETVAR
R="${R}nameserver $NS
"
done
- mv /etc/resolv.conf /etc/resolv.conf.bak
+ cp /etc/resolv.conf /etc/resolv.conf.bak
echo "$comment
$custom_head
$R
@@ -79,8 +79,8 @@ $custom_tail" > /etc/resolv.conf
function down() {
if [ -f /etc/resolv.conf.bak ] ; then
- unlink /etc/resolv.conf
- mv /etc/resolv.conf.bak /etc/resolv.conf
+ cat /etc/resolv.conf.bak > /etc/resolv.conf
+ rm /etc/resolv.conf.bak
fi
}