]>
git.ipfire.org Git - people/ms/network.git/blob - src/dhclient-helper
3 .
/usr
/lib
/network
/functions
14 # Check if the given interface is a zone.
15 assert zone_exists
${interface}
21 # Create dhclient configuration file.
24 config_file
="${RUN_DIR}/dhclient/${interface}/dhclient4.conf"
27 config_file
="${RUN_DIR}/dhclient/${interface}/dhclient6.conf"
28 leases_file
="/var/lib/dhclient/dhclient6-${interface}.leases"
31 assert isset config_file
33 # Update the dhclient configuration files
34 dhclient_write_config
"${interface}" \
35 --config-file="${config_file}" \
36 --leases-file="${leases_file}" ||
exit $?
55 exec /usr
/sbin
/dhclient-script
57 log ERROR $
"execing dhclient-script has failed."
62 log ERROR
"Unknown action passed: ${action}"