]>
git.ipfire.org Git - people/stevee/network.git/blob - dhclient-helper
3 .
/usr
/lib
/network
/functions
14 # Check if the given interface is a zone.
15 assert zone_exists
${interface}
19 # Create dhclient configuration file.
22 config_file
="${RUN_DIR}/dhclient/${interface}/dhclient4.conf"
25 config_file
="${RUN_DIR}/dhclient/${interface}/dhclient6.conf"
28 assert isset config_file
30 dhclient_write_config
${interface} ${config_file} \
31 --hostname="${HOSTNAME%%.*}"
50 exec /usr
/sbin
/dhclient-script
52 log ERROR $
"execing dhclient-script has failed."
57 log ERROR
"Unknown action passed: ${action}"