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