#!/bin/sh # dnsmasq - wrapper script # Copyright (c) 2014 Dr. Klaus Bielke (Germany) # Licence GPL, version 2 or later # Published in hope it will be usefull, but without any warranty. # USE IT AT OWN RISK. # Place this wrapper script for /usr/sbin/dnsmasq in directory # preceding /usr/sbin in PATH (try /usr/local/sbin)! # Required filename: dnsmasq DNSMASQ=/usr/sbin/dnsmasq # remove --cache-size=0 from options string: options="$@" options=$( echo $options | sed -e 's/--cache-size=0//' ) # run dnsmasq with sanitized options: logger -t "dnsmasq[$$]" "$0 wrapper script" exec $DNSMASQ $options