#!/bin/sh dns=8.8.8.8 if [ $# -eq 1 ]; then dns=$1 fi nameserver $dns" >> /etc/resolv.conf