File: setdnsmasq

package info (click to toggle)
whereami 0.3.36
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 424 kB
  • sloc: sh: 1,094; perl: 524; makefile: 24
file content (6 lines) | stat: -rwxr-xr-x 155 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
#!/bin/sh

echo "nameserver $1" >/etc/resolv.dnsmasq
if [ -f /var/run/dnsmasq/resolv.conf ] ; then
  echo "nameserver $1" >/var/run/dnsmasq/resolv.conf
fi