003 File Manager
Current Path:
/usr/src/contrib/hyperv/tools/scripts
usr
/
src
/
contrib
/
hyperv
/
tools
/
scripts
/
📁
..
📄
hv_get_dhcp_info
(527 B)
📄
hv_get_dns_info
(389 B)
📄
hv_set_ifconfig
(1.76 KB)
📄
hyperv_vfattach
(1.28 KB)
📄
hyperv_vfup
(2.02 KB)
Editing: hv_get_dhcp_info
#!/bin/sh # This is the script retrieves the DHCP state of a given interface. # The kvp daemon code invokes this external script to gather # DHCP setting for the specific interface. # # Input: Name of the interface # # Output: The script prints the string "Enabled" to stdout to indicate # that DHCP is enabled on the interface. If DHCP is not enabled, # the script prints the string "Disabled" to stdout. # . /etc/rc.subr . /etc/network.subr load_rc_config netif if dhcpif hn0; then echo "Enabled" else echo "Disabled" fi
Upload File
Create Folder