home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / dhcp / dhclient-exit-hooks.d / debug next >
Encoding:
Text File  |  2012-08-02  |  1004 b   |  27 lines

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