Last change
on this file since 464 was
464,
checked in by jrpelegrina, 5 years ago
|
First release to Xenial
|
-
Property svn:executable set to
*
|
File size:
983 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # This script is licensed under GPL v3 or higher |
---|
4 | # Author: Angel Berlanas Vicente |
---|
5 | # <angel.berlanas@gmail.com> |
---|
6 | |
---|
7 | |
---|
8 | # Bash power! |
---|
9 | NET_MIRROR_PATH="/net/mirror/llx1406/" |
---|
10 | NET_MIRROR_PATH_CONF="$NET_MIRROR_PATH/conf" |
---|
11 | TEXTDOMAIN="lliurex-up" |
---|
12 | |
---|
13 | do_sanity_checks() |
---|
14 | { |
---|
15 | if [ -x /usr/sbin/lliurex-mirror-non-gtk ] ; then |
---|
16 | echo "Sanity checks operations" |
---|
17 | /usr/sbin/lliurex-mirror-non-gtk do_sanity_checks |
---|
18 | fi |
---|
19 | } |
---|
20 | |
---|
21 | show_message() |
---|
22 | { |
---|
23 | rc=0 |
---|
24 | zenity --question --text=$"A LliureX replica has been detected\!\n\nMaking or upgrading the LliureX replica is highly recommended, this facilitates and enables many tasks performed in the classroom, such as thin clients.\n\n Do you want to make the replica right now\? (this might take a while as it needs to download 8-19 GB)" --cancel-label=$"Not at this moment" --ok-label=$"Ok! Seems amazing!" || rc=1 |
---|
25 | |
---|
26 | if [ $rc -eq 0 ] ; then |
---|
27 | lliurex-mirror-gui |
---|
28 | else |
---|
29 | echo "Nothing to do" |
---|
30 | fi |
---|
31 | } |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | # |
---|
36 | # MAIN |
---|
37 | # |
---|
38 | |
---|
39 | do_sanity_checks |
---|
40 | show_message |
---|
41 | |
---|
42 | |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.