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 | ;; |
---|
6 | configure) |
---|
7 | if [ "true" = "$option_lliurex_sourceslist_value" ]; then |
---|
8 | LLIUREX_SOURCESLIST="true" |
---|
9 | |
---|
10 | fi |
---|
11 | |
---|
12 | ;; |
---|
13 | finalization) |
---|
14 | if [ "true" = "$LLIUREX_SOURCESLIST" ]; then |
---|
15 | cp /etc/ltsp/sources/client.list $ROOT/etc/apt/sources.list |
---|
16 | else |
---|
17 | cp /etc/apt/sources.list $ROOT/etc/apt/sources.list |
---|
18 | cp /etc/apt/sources.list.d/*.list $ROOT/etc/apt/sources.list.d/ || true |
---|
19 | fi |
---|
20 | |
---|
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 | ;; |
---|
34 | |
---|
35 | esac |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.