HEAD="/etc/resolv.conf.head"
PDNS="/tmp/pdns"
yad --title="DNS Config" --text=" Add new DNS servers and restart \n your internet connection. " \
--form --field="DNS1" --field="DNS2" > $PDNS
button=$?
case $button in
0)
if [ ! -f "$HEAD" ]; then
touch $HEAD | echo "no $HEAD file created new file"
else
mv $HEAD $HEAD.old | echo "$HEAD already exists backed up to $HEAD.old"
fi
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum