Changeset 3305
- Timestamp:
- Jan 16, 2017, 12:57:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lmd/trunk/fuentes/lmd-lliurex-data.install/usr/share/ltsp/plugins/ltsp-build-client/Ubuntu/094-lliurex
r2844 r3305 1 1 case "$MODE" in 2 finalization) 3 case "$CHROOT" in 4 'llx-client' | 'llx-lite' | 'llx-musica' | 'llx-pime' | ' llx-infantil' | 'llx-desktop') 5 cp /usr/share/lliurex-apt/skels/client.list $ROOT/etc/apt/sources.list 6 ;; 7 *) 8 cp /etc/apt/sources.list $ROOT/etc/apt/sources.list 9 cp /etc/apt/sources.list.d/*.list $ROOT/etc/apt/sources.list.d/ || true 10 ;; 11 esac 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) 12 11 13 [ ! -d /opt/ltsp/$CHROOT/net/mirror/llx1605 ] || umount -l /opt/ltsp/$CHROOT/net/mirror/llx16 14 # Working about nsswitch and friends 15 if [ -f /opt/ltsp/$CHROOT/etc/ldap.conf ] ; then 16 rm -f /opt/ltsp/$CHROOT/etc/ldap.conf 17 touch /opt/ltsp/$CHROOT/root/etc.ldap.conf 18 fi 19 if [ -f /opt/ltsp/$CHROOT/etc/ldap/ldap.conf ] ; then 20 rm -f /opt/ltsp/$CHROOT/etc/ldap/ldap.conf 21 touch /opt/ltsp/$CHROOT/root/etc.ldap.ldap.conf 22 fi 23 ;; 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 ;; 24 33 esac 25 34 26
Note: See TracChangeset
for help on using the changeset viewer.