OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17210
/
etc
/
dhcp
/
dhclient-exit-hooks.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
debug
1.39 KB
12/09/2016 05:45:11 PM
rw-r--r--
📄
hook-dhclient
805 bytes
03/19/2021 02:37:22 PM
rwxr-xr-x
📄
rfc3442-classless-routes
1.71 KB
11/04/2022 12:52:52 PM
rw-r--r--
📄
timesyncd
1.09 KB
04/01/2021 05:13:18 PM
rw-r--r--
Editing: debug
Close
# # The purpose of this script is just to show the variables that are # available to all the scripts in this directory. All these scripts are # called from dhclient-script, which exports all the variables shown # before. If you want to debug a problem with your DHCP setup you can # enable this script and take a look at /tmp/dhclient-script.debug. # To enable this script set the following variable to "yes" RUN="no" if [ "$RUN" = "yes" ]; then echo "$(date): entering ${1%/*}, dumping variables." \ >> /tmp/dhclient-script.debug # loop over the 4 possible prefixes: (empty), cur_, new_, old_ for prefix in '' 'cur_' 'new_' 'old_'; do # loop over the DHCP variables passed to dhclient-script for basevar in reason interface medium alias_ip_address \ ip_address host_name network_number subnet_mask \ broadcast_address routers static_routes \ rfc3442_classless_static_routes \ domain_name domain_search domain_name_servers \ netbios_name_servers netbios_scope \ ntp_servers \ ip6_address ip6_prefix ip6_prefixlen \ dhcp6_domain_search dhcp6_name_servers ; do var="${prefix}${basevar}" eval "content=\$$var" # show only variables with values set if [ -n "${content}" ]; then echo "$var='${content}'" >> /tmp/dhclient-script.debug fi done done echo '--------------------------' >> /tmp/dhclient-script.debug fi