OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mol/dhcp-fixes.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -ur mol-0.9.70/Doc/config/dhcpd-mol.conf mol-0.9.70-fixed/Doc/config/dhcpd-mol.conf
  17. --- mol-0.9.70/Doc/config/dhcpd-mol.conf 2004-03-27 12:04:27.000000000 +0100
  18. +++ mol-0.9.70-fixed/Doc/config/dhcpd-mol.conf 2005-02-20 19:05:39.924503728 +0100
  19. @@ -12,7 +12,7 @@
  20. #option domain-name-servers 10.0.0.1, 10.0.0.2;
  21. # Newer dhcpd versions require the following line
  22. -#ddns-update-style ad-hoc;
  23. +ddns-update-style ad-hoc;
  24. # Support up to 10 sessions (each with its own tun interface)
  25. diff -ur mol-0.9.70/Doc/config/tunconfig mol-0.9.70-fixed/Doc/config/tunconfig
  26. --- mol-0.9.70/Doc/config/tunconfig 2004-03-27 12:04:27.000000000 +0100
  27. +++ mol-0.9.70-fixed/Doc/config/tunconfig 2005-02-20 19:15:13.503306496 +0100
  28. @@ -137,7 +137,10 @@
  29. IFACES=`netstat -i | sed -n -e 's/^\(tun[0-9]\).*/\1/gp'`
  30. if [ "$IFACES" ] ; then
  31. - [ "$PROVIDE_DHCP" = yes ] && $DHCPD -q -cf /etc/mol/dhcpd-mol.conf $IFACES
  32. + if [ "$PROVIDE_DHCP" = yes ] ; then
  33. + touch /var/state/dhcp/dhcpd.leases
  34. + $DHCPD -q -cf /etc/mol/dhcpd-mol.conf $IFACES
  35. + fi
  36. echo 1 > /proc/sys/net/ipv4/ip_forward
  37. else
  38. $IPTABLES -t nat -X mol-ns-redirect >& /dev/null