#!/bin/bash set -ex RESOLV_CONF=/run/netconfig/resolv.conf sed -i '/^search .*/d' $RESOLV_CONF sed -i '/^options .*/d' $RESOLV_CONF cat <> $RESOLV_CONF search csclub.uwaterloo.ca uwaterloo.ca options ndots:2 EOF