source: trunk/debathena/config/recovery-mode-config/debian/athena-update @ 25071

Revision 25071, 1.1 KB checked in by jdreed, 13 years ago (diff)
In recovery-mode-config: * Add dns-search to the created interfaces file in athena-renumber * Make use of athena-auto-update's new -v option and depend on 1.23.1 * Bump standards-version * Drop perl dependency
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# Blatantly stolen from the installer
4ask() {
5  answer=''
6  while [ y != "$answer" -a n != "$answer" ]; do
7    echo -n "$1"
8    read answer
9    [ Y = answer ] && answer=y
10    [ N = answer ] && answer=n
11    [ -z "$answer" ] && answer=$2
12  done
13}
14
15if [ "$1" = "test" ]; then
16  echo "Force an update of the workstation"
17  exit 0
18fi
19
20. /usr/share/debathena-recovery-mode-config/require_network.sh
21
22echo "Testing networking, please wait..."
23if ! require_network; then
24    echo "Can't verify that networking is available.  If you continue,"
25    ask "errors may occur.  Continue? (y/N) " n
26    if [ "$answer" = "n" ]; then
27        exit 0
28    fi
29fi
30
31echo "Running auto-updater, please wait..."
32/usr/sbin/athena-auto-update -n -v
33if [ $? != 0 ]; then
34    echo "Something went wrong.  Press Enter to return to the menu."
35    read dummy
36    exit 0
37fi
38# We can just return to the menu and resume boot once LP:436936 gets fixed
39ask "The workstation needs to be rebooted.  Do that now? (Y/n) " y
40if [ "$answer" = "y" ]; then
41    /sbin/reboot
42fi
43echo "Please reboot as soon as possible.  Press Enter to return to the menu."
44read dummy
45exit 0
Note: See TracBrowser for help on using the repository browser.