home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / dhcp3 / dhclient-enter-hooks.d / debug < prev    next >
Encoding:
Text File  |  2006-10-17  |  1018 b   |  28 lines

  1. # $Id: debug-enter,v 1.2 2003/06/18 18:11:21 peloy Exp $
  2. #
  3. # The purpose of this script is just to show the variables that are
  4. # available to all the scripts in this directory. All these scripts
  5. # are called from /etc/dhcp3/dhclient-script, which exports all the
  6. # variables shown before. If you want to debug a problem with your DHCP
  7. # setup you can enable this script and take a look at
  8. # /tmp/dhclient-script.debug.
  9.  
  10. # To enable this script set the following variable to "yes"
  11. RUN="no"
  12.  
  13. if [ "$RUN" = "yes" ]; then
  14.     echo `date`: entering dhclient-enter-hooks.d, dumping variables. \
  15.         >> /tmp/dhclient-script.debug
  16.  
  17.     for i in reason interface medium alias_ip_address new_ip_address \
  18.         new_subnet_mask new_domain_name new_domain_name_servers \
  19.         new_routers new_static_routes old_ip_address old_subnet_mask \
  20.         old_domain_name old_domain_name_servers old_routers \
  21.         old_static_routes; do
  22.  
  23.         echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
  24.     done
  25.  
  26.     echo '--------------------------' >> /tmp/dhclient-script.debug
  27. fi
  28.