OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   30-Dec-2004 20:17:54
  Branch: HEAD                             Handle: 2004123019175400

  Modified files:
    openpkg-src/dhcpd       rc.dhcpd

  Log:
    ok, dhcpd insists on having this file during startup, so create in
    on-the-fly now

  Summary:
    Revision    Changes     Path
    1.19        +6  -0      openpkg-src/dhcpd/rc.dhcpd
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/dhcpd/rc.dhcpd
  ============================================================================
  $ cvs diff -u -r1.18 -r1.19 rc.dhcpd
  --- openpkg-src/dhcpd/rc.dhcpd        9 Nov 2004 12:28:57 -0000       1.18
  +++ openpkg-src/dhcpd/rc.dhcpd        30 Dec 2004 19:17:54 -0000      1.19
  @@ -16,10 +16,16 @@
   
   %common
       dhcpd_pidfile="@l_prefix@/var/dhcpd/dhcpd.pid"
  +    dhcpd_leases="@l_prefix@/var/dhcpd/dhcpd.leases"
       dhcpd_signal () {
           [ -f $dhcpd_pidfile ] && kill -$1 `cat $dhcpd_pidfile`
       }
       dhcpd_start () {
  +        if [ ! -f $dhcpd_leases ]; then
  +            touch $dhcpd_leases
  +            chmod 644 $dhcpd_leases
  +            chown @l_susr@:@l_mgrp@ $dhcpd_leases
  +        fi
           local cmd="@l_prefix@/sbin/dhcpd"
           cmd="$cmd $dhcpd_flags"
           echo ".$dhcpd_flags" | grep -- -p >/dev/null 2>&1
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to