Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/pxeconfig/mcore-pxeconfig.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2867 by niro, Wed Jun 22 11:56:21 2016 UTC revision 2868 by niro, Fri Aug 14 05:49:36 2020 UTC
# Line 14  create_pxe_config() Line 14  create_pxe_config()
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
# Line 35  create_pxe_config() Line 37  create_pxe_config()
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   \   \

Legend:
Removed from v.2867  
changed lines
  Added in v.2868