#!/bin/sh if [ "$2" = "pre-up" ]; then sed -i '1inameserver 192.168.1.240' /etc/resolv.conf fi