mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
264 B

#!/bin/bash
if [ "$DNS1" -o "$DNS2" ] ; then
sed -i '/^nameserver .*/d' /etc/resolv.conf
(
echo "# added by /etc/ppp/ip-up during PPP connect ..."
[ "$DNS1" ] && echo "nameserver $DNS1"
[ "$DNS2" ] && echo "nameserver $DNS2"
) >> /etc/resolv.conf
fi