#!/bin/bash # ------- # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA # -------- set -e DEFAULT_DIR="/etc/default" DHCP_DIR="/etc/dhcp3" DHCPD_DEFAULT="$DEFAULT_DIR/dhcp3-server" DHCPD_CONF="$DHCP_DIR/dhcpd.conf" LLIUREX_CONFFILE="dhcp/dhcpd.conf" LLIUREX_FIX_CONF="$DHCP_DIR/dhcpd.lliurex-fixed.conf" REG_EXP="^[[:blank:]]*INTERFACES=" VAR_LIST="DNS_SRV_ALIASES SRV_DOMAIN DNS_EXTERNAL_NS SRV_BITMASK SRV_IP SRV_NIC SRV_ALTERNATE_IP" LLX_GETVAR="/usr/sbin/llxcfg-showvars" # some checks LIB_FILE="/usr/share/lliurex/lliurex-srv-common/lliurex-netfuncs.sh" [ -e "$LIB_FILE" ] || exit 1 . ${LIB_FILE} gen_lliurex_fix(){ cat <