Last change
on this file since 3305 was
3305,
checked in by joamuran, 4 years ago
|
fixed 094-lliurex plugin for ltsp
|
File size:
1.5 KB
|
Line | |
---|
1 | case "$MODE" in |
---|
2 | commandline) |
---|
3 | add_option "lliurex-sourceslist" "`eval_gettext "add sources.list properly for lliurex systems"`" "advanced" "false" |
---|
4 | ;; |
---|
5 | configure) |
---|
6 | if [ "true" = "$option_lliurex-sourceslist_value" ]; then |
---|
7 | LLIUREX_SOURCESLIST="true" |
---|
8 | fi |
---|
9 | ;; |
---|
10 | finalization) |
---|
11 | |
---|
12 | #case "$CHROOT" in |
---|
13 | # 'llx-client' | 'llx-lite' | 'llx-musica' | 'llx-pime' | ' llx-infantil' | 'llx-desktop') |
---|
14 | |
---|
15 | if [ "true" = "$LLIUREX_SOURCESLIST" ]; then |
---|
16 | cp /usr/share/lliurex-apt/skels/client.list $ROOT/etc/apt/sources.list |
---|
17 | else |
---|
18 | cp /etc/apt/sources.list $ROOT/etc/apt/sources.list |
---|
19 | cp /etc/apt/sources.list.d/*.list $ROOT/etc/apt/sources.list.d/ || true |
---|
20 | fi |
---|
21 | |
---|
22 | [ ! -d /opt/ltsp/$CHROOT/net/mirror/llx16 ] || umount -l /opt/ltsp/$CHROOT/net/mirror/llx16 |
---|
23 | # Working about nsswitch and friends |
---|
24 | if [ -f /opt/ltsp/$CHROOT/etc/ldap.conf ] ; then |
---|
25 | rm -f /opt/ltsp/$CHROOT/etc/ldap.conf |
---|
26 | touch /opt/ltsp/$CHROOT/root/etc.ldap.conf |
---|
27 | fi |
---|
28 | if [ -f /opt/ltsp/$CHROOT/etc/ldap/ldap.conf ] ; then |
---|
29 | rm -f /opt/ltsp/$CHROOT/etc/ldap/ldap.conf |
---|
30 | touch /opt/ltsp/$CHROOT/root/etc.ldap.ldap.conf |
---|
31 | fi |
---|
32 | ;; |
---|
33 | esac |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.