Debian Codegraph @

scripts/sbin/drbl-live-conf-X

raw symbols SCIP
1 #!/bin/bash
2 # Author: Steven Shiau <steven _at_ clonezilla org>
3 # License: GPL
4
5 # Load DRBL setting and functions
6 DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
7
8 . $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
9 [ -e /etc/drbl/drbl-ocs.conf ] && . /etc/drbl/drbl-ocs.conf
10 [ -e $DRBL_SCRIPT_PATH/sbin/ocs-functions ] && . $DRBL_SCRIPT_PATH/sbin/ocs-functions
11
12 # Load ocs_lang if it exists
13 [ -e /etc/ocs/ocs-live.conf ] && . /etc/ocs/ocs-live.conf
14
15 #
16 config_X() {
17 local action
18 [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
19 echo "$msg_later_enter_X_in_drbl_live"
20 [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
21 echo "$msg_run_forcevideo_drbl_live_prompt"
22 echo "$msg_failing_start_X_in_drbl_live_prompt"
23 echo "------------------------------------------"
24 [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
25 echo "$msg_which_mode_do_you_prefer"
26 [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
27 echo "(0) $msg_continue_to_start_X_for_drbl_live"
28 echo "(1) $msg_run_forcevideo_to_config_X_manually"
29 echo "(2) $msg_enter_cmd_prompt_to_config_X"
30 echo -n "[0] "
31 read action
32 case "$action" in
33 1) Forcevideo-drbl-live --skip-start-x # This process is still in rc*.d, skip start x
34 ;;
35 2) echo "$msg_enter_another_shell_hint_wo_netcfg_prompt"
36 /bin/bash;;
37 *) true;
38 esac
39 } # end of config_X
40 #
41
42 #
43 ask_and_load_lang_set
44
45 #
46 config_X