36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
|
|
Index: udhcp-0.9.8/Makefile
|
||
|
|
===================================================================
|
||
|
|
--- udhcp-0.9.8.orig/Makefile
|
||
|
|
+++ udhcp-0.9.8/Makefile
|
||
|
|
@@ -100,6 +100,10 @@ endif
|
||
|
|
$(INSTALL) samples/sample.$$name \
|
||
|
|
$(USRSHAREDIR)/udhcpc/default.$$name ; \
|
||
|
|
done
|
||
|
|
+ cat $(USRSHAREDIR)/udhcpc/default.script | sed -e s/sample/default/ > \
|
||
|
|
+ $(USRSHAREDIR)/udhcpc/tmp.defualt.script
|
||
|
|
+ mv $(USRSHAREDIR)/udhcpc/tmp.defualt.script $(USRSHAREDIR)/udhcpc/default.script
|
||
|
|
+ chmod +x $(USRSHAREDIR)/udhcpc/default.script
|
||
|
|
mkdir -p $(USRSHAREDIR)/man/man1
|
||
|
|
$(INSTALL) dumpleases.1 $(USRSHAREDIR)/man/man1
|
||
|
|
mkdir -p $(USRSHAREDIR)/man/man5
|
||
|
|
@@ -110,5 +114,5 @@ endif
|
||
|
|
chmod +x $(USRSHAREDIR)/udhcpc/outputpy.udhcp.sh
|
||
|
|
|
||
|
|
clean:
|
||
|
|
- -rm -f udhcpd udhcpc dumpleases *.o core
|
||
|
|
+ rm -f udhcpd udhcpc dumpleases *.o core
|
||
|
|
|
||
|
|
Index: udhcp-0.9.8/samples/sample.bound
|
||
|
|
===================================================================
|
||
|
|
--- udhcp-0.9.8.orig/samples/sample.bound
|
||
|
|
+++ udhcp-0.9.8/samples/sample.bound
|
||
|
|
@@ -1,7 +1,7 @@
|
||
|
|
#!/bin/sh
|
||
|
|
# Sample udhcpc renew script
|
||
|
|
|
||
|
|
-RESOLV_CONF="/etc/udhcpc/resolv.conf"
|
||
|
|
+RESOLV_CONF="/etc/resolv.conf"
|
||
|
|
|
||
|
|
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
|
||
|
|
[ -n "$subnet" ] && NETMASK="netmask $subnet"
|