Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 17 years ago
parent
commit
39c9d001ed
3 changed files with 18 additions and 20 deletions
  1. +11
    -0
      package/base/dhcp/dhclientscr.patch
  2. +7
    -14
      package/base/dhcp/dhcp.conf
  3. +0
    -6
      package/base/dhcp/rocknet_dhcp.sh

+ 11
- 0
package/base/dhcp/dhclientscr.patch

@ -0,0 +1,11 @@
--- ./client/scripts/linux 2007-05-30 01:50:45.000000000 +0200
+++ ./client/scripts/linux 2007-05-30 01:51:27.000000000 +0200
@@ -4,6 +4,8 @@
# No guarantees about this. I'm a novice at the details of Linux
# networking.
+export PATH=/bin:/sbin:/usr/bin:/usr/sbin
+
# Notes:
# 0. This script is based on the netbsd script supplied with dhcp-970306.

+ 7
- 14
package/base/dhcp/dhcp.conf

@ -20,14 +20,7 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
pre_dhcp() {
cat >> site.conf <<-EOP
INCDIR=$root/$prefix/include
LIBDIR=$root/$prefix/lib
EOP
}
pm_dhcp() {
postmake_dhcp() {
# install japanese manpages
mkdir -p $root/$prefix/share/man/ja_JP.eucjp/man5
mkdir -p $root/$prefix/share/man/ja_JP.eucjp/man8
@ -37,13 +30,13 @@ pm_dhcp() {
cp -v doc/* client/dhclient.conf server/dhcpd.conf $docdir
install_init dhcp $confdir/dhcp.init
cp -v $confdir/rocknet_dhcp.sh \
$root/etc/network/modules/dhcp.sh
cp -v client/scripts/linux $root/etc/dhclient-script
chmod +x $root/etc/dhclient-script
}
confopt=""
var_append makeopt ' ' 'CC_OPTIONS="-DPARANOIA -DEARLY_CHROOT"'
postmake="postmake_dhcp"
preconf="pre_dhcp"
postmake="pm_dhcp"
var_append extraconfopt " " "--with-srv-lease-file=/var/state/dhcpd.leases"
var_append extraconfopt " " "--with-cli-lease-file=/var/state/dhclient.leases"

+ 0
- 6
package/base/dhcp/rocknet_dhcp.sh

@ -1,6 +0,0 @@
public_dhcp() {
addcode up 5 5 "/sbin/dhclient -q $if"
addcode down 5 5 "/sbin/dhclient -r $if"
}

Loading…
Cancel
Save