Changeset 234 for 64studio/trunk/utils

Show
Ignore:
Timestamp:
09/01/07 11:59:30 (15 months ago)
Author:
free
Message:

* Comment the cdrom APT entry only if the network is available

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 64studio/trunk/utils/64studio-config

    r209 r234  
    4848fi 
    4949 
    50 # Comment the cdrom source, we installed everything 
    51 if [ -e /etc/apt/sources.list ]; then 
    52     sed -i -e 's/^\(deb cdrom:.*\)/#\1/g' /etc/apt/sources.list 
    53 fi 
    54  
    5550# If network is available, run apt-get update, otherwise 
    5651# comment the source list 
     
    6156if route -n | grep -q ^0.0.0.0; then 
    6257    apt-get update || sed -i -e 's/^deb /#deb /g' $APT_SOURCE 
     58 
     59    # Comment the cdrom source, we install from the internet 
     60    if [ -e /etc/apt/sources.list ]; then 
     61        sed -i -e 's/^\(deb cdrom:.*\)/#\1/g' /etc/apt/sources.list 
     62    fi 
    6363else 
    6464    sed -i -e 's/^deb /#deb /g' $APT_SOURCE