14 |
local locations |
local locations |
15 |
local loc |
local loc |
16 |
local client_locations_location |
local client_locations_location |
17 |
|
local client_locations_bootserver |
18 |
|
local client_locations_bootsubdir |
19 |
local client_locations_controlserver |
local client_locations_controlserver |
20 |
local client_locations_pxe_default_entry |
local client_locations_pxe_default_entry |
21 |
local client_locations_pxe_prompt |
local client_locations_pxe_prompt |
37 |
client_locations_bootserver="${client_locations_controlserver}" |
client_locations_bootserver="${client_locations_controlserver}" |
38 |
fi |
fi |
39 |
|
|
40 |
|
# fallback subdir |
41 |
|
if [[ ${client_locations_bootsubdir} = NULL ]] |
42 |
|
then |
43 |
|
client_locations_bootsubdir="" |
44 |
|
fi |
45 |
|
# fallback subdir |
46 |
|
if [[ -n ${client_locations_bootsubdir} ]] && [[ ${client_locations_bootsubdir:0:1} != / ]] |
47 |
|
then |
48 |
|
client_locations_bootsubdir="/${client_locations_bootsubdir}" |
49 |
|
fi |
50 |
|
|
51 |
sed \ |
sed \ |
52 |
-e "s:@@DEFAULTENTRY@@:${client_locations_pxe_default_entry}:g" \ |
-e "s:@@DEFAULTENTRY@@:${client_locations_pxe_default_entry}:g" \ |
53 |
-e "s:@@TIMEOUT@@:${client_locations_pxe_timeout}:g" \ |
-e "s:@@TIMEOUT@@:${client_locations_pxe_timeout}:g" \ |
54 |
-e "s:@@PROMPT@@:${client_locations_pxe_prompt}:g" \ |
-e "s:@@PROMPT@@:${client_locations_pxe_prompt}:g" \ |
55 |
-e "s:@@BOOTSERVER@@:${client_locations_bootserver}:g" \ |
-e "s:@@BOOTSERVER@@:${client_locations_bootserver}:g" \ |
56 |
|
-e "s:@@BOOTSUBDIR@@:${client_locations_bootsubdir}:g" \ |
57 |
-e "s:@@CONTROLSERVER@@:${client_locations_controlserver}:g" \ |
-e "s:@@CONTROLSERVER@@:${client_locations_controlserver}:g" \ |
58 |
-e "s:@@LOCATION@@:${client_locations_location}:g" \ |
-e "s:@@LOCATION@@:${client_locations_location}:g" \ |
59 |
\ |
\ |