Skip to content

Commit 41c1fa7

Browse files
committedJan 11, 2012
Get rid of grml2hd specific dialog and code [Closes: issue1117]
1 parent 28dac28 commit 41c1fa7

File tree

1 file changed

+0
-93
lines changed

1 file changed

+0
-93
lines changed
 

‎grml-terminalserver-config

-93
Original file line numberDiff line numberDiff line change
@@ -219,51 +219,6 @@ the internet?"
219219
fi
220220
fi
221221

222-
# get options
223-
#local OPT_IPTABLES_="yes"
224-
#local OPT_SSH_="yes"
225-
#local OPT_DISTCC_="yes"
226-
#local OPT_SQUID_=""
227-
228-
local OPTIONS_TITLE_="Options"
229-
local OPTIONS_MESSAGE_="Please give the appropriate options you want the clients to use:
230-
231-
grml2hd - Make a non-interactive remote installation
232-
233-
234-
235-
"
236-
# local OPTIONS_MESSAGE_="Please give the appropriate options you want the clients to use:
237-
#
238-
#iptables - Only the server should be able to access the clients
239-
#ssh - A ssh-key will be created on the server and distributed to the clients
240-
#distcc - You want to use the clients as compile-farm (ssh options recommned)
241-
#
242-
#"
243-
244-
local OPT_IPTABLES_DESC_="Start iptables on the clients"
245-
local OPT_SSH_DESC_="Start ssh on the clients"
246-
local OPT_DISTCC_DESC_="Start distcc on the clients"
247-
local OPT_GRML2HD_DESC_="Remote install grml on the network clients"
248-
# dialog options (enable if implemented)
249-
#iptables "$OPT_IPTABLES_DESC_" off \
250-
#ssh "$OPT_SSH_DESC_" off \
251-
#distcc "$OPT_DISTCC_DESC_" off \
252-
echo -n "" >"$TMP_"
253-
$DIALOG_ --clear --separate-output --backtitle "$BACK_TITLE_" --title "$OPTIONS_TITLE_" --checklist "$OPTIONS_MESSAGE_" 25 80 10 \
254-
grml2hd "$OPT_GRML2HD_DESC_" off \
255-
2>$TMP_ || die "could not get terminalserver options" $?
256-
while read tmp_option_; do
257-
OPTIONS_="$OPTIONS_ $tmp_option_"
258-
done <$TMP_
259-
260-
# parse options
261-
for i in $OPTIONS_; do
262-
case "$i" in
263-
grml2hd) optGrml2Hd || return 1 ;;
264-
esac
265-
done
266-
267222
echo -n "" >"$TMP_"
268223
local OPTIONS_BOOTARG_MESSAGE_="Here you can add additional boot arguments for the clients seperated by spaces:
269224
@@ -286,54 +241,6 @@ startx - Boot into X
286241
}
287242
# }}}
288243

289-
# OPTIONS GETTING DIALOG {{{
290-
function optGrml2Hd
291-
{
292-
local GRML2HD_TITLE_='Grml2hd options dialog'
293-
local tmp_=''
294-
local options_='BOOT_IMAGE=grml2hd'
295-
296-
# get partition to install grml2hd on
297-
OPTIONS_PARTITION_MSG_='Please specify the target partition where to install grml'
298-
PARTITION_TITLE_='Partition selection'
299-
echo -n "" >"$TMP_"
300-
$DIALOG_ --clear --backtitle "$BACK_TITLE_" --title "$PARTITION_TITLE_" --inputbox \
301-
"$OPTIONS_PARTITION_MSG_" 0 75 '/dev/hda1' 2>$TMP_ || die "problems getting partition"
302-
tmp_="partition=$(<$TMP_)"
303-
options_="$options_ $tmp_"
304-
305-
# get filesystem type
306-
OPTION_FS_TYPE_='Please specify the filesystem type'
307-
FS_TITLE_='Filesystem selection'
308-
echo -n "" >"$TMP_"
309-
$DIALOG_ --clear --backtitle "$BACK_TITLE_" --title "$FS_TITLE_" --inputbox \
310-
"$OPTION_FS_TYPE_" 0 75 'ext3' 2>$TMP_ || die "problems getting filesystem type"
311-
tmp_="filesystem=$(<$TMP_)"
312-
options_="$options_ $tmp_"
313-
314-
# get where to save mbr
315-
OPTION_MBR_='Please specify the location where to save the mbr'
316-
MBR_TITLE_='Select location of mbr'
317-
echo -n "" >"$TMP_"
318-
$DIALOG_ --clear --backtitle "$BACK_TITLE_" --title "$MBR_TITLE_" --inputbox \
319-
"$OPTION_MBR_" 0 75 '/dev/hda' 2>$TMP_ || die "problems getting location where to write mbr"
320-
tmp_="mbr=$(<$TMP_)"
321-
options_="$options_ $tmp_"
322-
323-
# get first user
324-
OPTION_USER_='Who should be the first user on the system'
325-
USER_TITLE_='User selection'
326-
echo -n "" >"$TMP_"
327-
$DIALOG_ --clear --backtitle "$BACK_TITLE_" --title "$USER_TITLE_" --inputbox \
328-
"$OPTION_USER_" 0 75 'grml' 2>$TMP_ || die "problems getting first user of system"
329-
tmp_="user=$(<$TMP_)"
330-
options_="$options_ $tmp_"
331-
332-
BOOT_ARGS_="$options_"
333-
}
334-
#}}}
335-
336-
337244
function removeTmpFiles
338245
{
339246
execute "rm -f $TMP_" warn

0 commit comments

Comments
 (0)
Please sign in to comment.