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
*
|
Rev | Line | |
---|
[24348] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[24388] | 3 | # Blatantly stolen from the installer |
---|
| 4 | ask() { |
---|
| 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 | |
---|
[24348] | 15 | if [ "$1" = "test" ]; then |
---|
| 16 | echo "Force an update of the workstation" |
---|
| 17 | exit 0 |
---|
| 18 | fi |
---|
| 19 | |
---|
[25023] | 20 | . /usr/share/debathena-recovery-mode-config/require_network.sh |
---|
| 21 | |
---|
| 22 | echo "Testing networking, please wait..." |
---|
| 23 | if ! 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 |
---|
| 29 | fi |
---|
| 30 | |
---|
[24348] | 31 | echo "Running auto-updater, please wait..." |
---|
[25071] | 32 | /usr/sbin/athena-auto-update -n -v |
---|
[24388] | 33 | if [ $? != 0 ]; then |
---|
| 34 | echo "Something went wrong. Press Enter to return to the menu." |
---|
| 35 | read dummy |
---|
| 36 | exit 0 |
---|
| 37 | fi |
---|
[25023] | 38 | # We can just return to the menu and resume boot once LP:436936 gets fixed |
---|
| 39 | ask "The workstation needs to be rebooted. Do that now? (Y/n) " y |
---|
[24388] | 40 | if [ "$answer" = "y" ]; then |
---|
[25023] | 41 | /sbin/reboot |
---|
[24388] | 42 | fi |
---|
[25023] | 43 | echo "Please reboot as soon as possible. Press Enter to return to the menu." |
---|
[24388] | 44 | read dummy |
---|
[25023] | 45 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.