Revision 24435,
980 bytes
checked in by jhamrick, 15 years ago
(diff) |
In gconf2-config:
* Make sure debathena-gconf2-config is installed before executing the
xsession script (Trac: #348)
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | consider() { |
---|
4 | TARGET="$1" |
---|
5 | if [ "-${CODENAME}" = "$TARGET" ]; then |
---|
6 | FINISHED="yes" |
---|
7 | fi |
---|
8 | TRY="$HOME/.gconf-debathena${TARGET}" |
---|
9 | if [ ! "$FINISHED" = "yes" ] && [ -e "$TRY" ]; then |
---|
10 | SOURCE="$TRY" |
---|
11 | fi |
---|
12 | } |
---|
13 | |
---|
14 | if [ "$(dpkg-query -W -f '${Status}' debathena-gconf2-config 2>/dev/null)" = "install ok installed" ]; then |
---|
15 | SOURCE="" |
---|
16 | FINISHED="no" |
---|
17 | CODENAME=`lsb_release --short --codename` |
---|
18 | DISTRO=`lsb_release --short --id` |
---|
19 | GCONF="$HOME/.gconf-debathena-$CODENAME" |
---|
20 | if [ ! -e "$GCONF" ]; then |
---|
21 | if [ "$DISTRO" = "Ubuntu" ]; then |
---|
22 | consider "-dapper" |
---|
23 | consider "-edgy" |
---|
24 | consider "-feisty" |
---|
25 | consider "-gutsy" |
---|
26 | consider "-ubuntu" |
---|
27 | consider "-hardy" |
---|
28 | consider "-intrepid" |
---|
29 | consider "-jaunty" |
---|
30 | fi |
---|
31 | if [ "$DISTRO" = "Debian" ]; then |
---|
32 | consider "-sarge" |
---|
33 | consider "" |
---|
34 | consider "-etch" |
---|
35 | consider "-lenny" |
---|
36 | consider "-squeeze" |
---|
37 | fi |
---|
38 | if [ -n "$SOURCE" ]; then |
---|
39 | cp -a "$SOURCE" "$GCONF" |
---|
40 | fi |
---|
41 | fi |
---|
42 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.