#!/bin/bash set -e # comprobaciones LIB_FILE="/usr/share/lliurex/lliurex-srv-common/lliurex-netfuncs.sh" [ -e "$LIB_FILE" ] || exit 1 [ -x /sbin/resolvconf ] || exit 0 . ${LIB_FILE} # lee variables eval `/usr/sbin/llxcfg-showvars DNS_EXTRA_DOMAINS` set_local_nameserver() { echo -e "nameserver 127.0.0.1\nsearch `get_srv_domain`" for d in ${DNS_EXTRA_DOMAINS} ; do echo "search $d" done return 0 } set_local_nameserver | /sbin/resolvconf -a `get_srv_nic` exit 0