Debian Codegraph @

scripts/bin/udhcpc-find-dhcp-record

raw symbols SCIP
1 #!/bin/bash
2 #!/bin/bash
3 # License: GPL
4 # Author: Steven Shiau <steven _at_ clonezilla org>
5 # Description: Script to be run with busybox udhcpc.
6 # Ref: https://udhcp.busybox.net/README.udhcpc for the variables used in udhcpc script
7 # Load DRBL setting and functions
8 DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
9
10 . $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
11
12 # Because the script for udhdpc does not accept input options, we have to hardcode the output file.
13 # The output file udhdpc_query_result is defined in drbl.conf
14 cat <<-DHCP_END > $udhdpc_query_result
15 DHCPOFFER_eth="$interface"
16 DHCPOFFER_siaddr="$serverid"
17 DHCPOFFER_yiaddr="$ip"
18 DHCPOFFER_netmask=""
19 DHCPOFFER_prefix=""
20 DHCP_END