root/floppyfw/files/udhcpd.conf.sh

Revision 71, 0.9 KB (checked in by root, 6 years ago)

Ok, Kais patches are on.

Line 
1#!/bin/sh
2
3# $Id: udhcpd.conf.sh,v 1.6 2004/11/13 13:10:42 thomasez Exp $
4
5. /etc/config
6. /etc/inside.info
7
8DHCPDDOMAIN=`for DOMAINS in $(grep search /etc/resolv.conf | sed 's/^search//'); do echo $DOMAINS; break; done`
9
10echo "DOMAIN:$DHCPDDOMAIN"
11
12cat >> /etc/udhcpd.conf <<EOF
13interface       $INSIDE_DEVICE
14start           $DHCP_RANGE_START
15end             $DHCP_RANGE_END
16# max_leases    103
17lease_file      /var/state/udhcpd.leases
18pidfile         /var/run/udhcpd.pid
19option          dns             $INSIDE_IP
20option          subnet          $INSIDE_NETMASK
21option          broadcast       $INSIDE_BROADCAST
22option          router          $INSIDE_IP
23option          domain          $DHCPDDOMAIN
24option          lease           864000                                   
25$OPS
26EOF
27
28# Adding the /etc/ethers file:
29sed -e '/^#/d;/^$/d;s/^/static_lease /' /etc/ethers >> /etc/udhcpd.conf
Note: See TracBrowser for help on using the browser.