~ubuntu-core-dev/friendly-recovery/ubuntu

« back to all changes in this revision

Viewing changes to lib/recovery-mode/recovery-menu

  • Committer: Stéphane Graber
  • Date: 2011-09-01 20:28:46 UTC
  • Revision ID: stgraber@ubuntu.com-20110901202846-1qazj8w3x4mhs8ga
Let's move everything to /lib/recovery-mode/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
3
# include gettext stuff
4
 
. /usr/share/recovery-mode/l10n.sh
 
4
. /lib/recovery-mode/l10n.sh
5
5
 
6
6
# main
7
7
menu_text=$(eval_gettext "Recovery Menu")
12
12
  items[c++]="resume"
13
13
  items[c++]=$(eval_gettext "   Resume normal boot")
14
14
 
15
 
  for i in /usr/share/recovery-mode/options/*; do
 
15
  for i in /lib/recovery-mode/options/*; do
16
16
    if [ -x "$i" ]; then
17
17
      name="`"$i" test`"
18
18
      if [ $? -eq 0 ]; then
22
22
    fi
23
23
  done
24
24
 
25
 
  choice="$(/usr/bin/whiptail --menu "$menu_text" 15 70 6 \
 
25
  choice="$(whiptail --menu "$menu_text" 15 70 6 \
26
26
                             "${items[@]}" \
27
27
                             3>&1 1>&2 2>&3 3>&-)"
28
28
 
34
34
    exit
35
35
  fi
36
36
 
37
 
  "/usr/share/recovery-mode/options/$choice"
 
37
  "/lib/recovery-mode/options/$choice"
38
38
 
39
39
  if [ "$?" -eq 42 ]; then
40
40
    exit 0