Changeset 541

Show
Ignore:
Timestamp:
05/17/08 16:52:16 (7 months ago)
Author:
free
Message:

Code clean up

Location:
cdd-utils/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • cdd-utils/trunk/cdd-config

    r522 r541  
    22 
    33libdir=/usr/lib/cdd-utils 
    4  
    5 lsb=/etc/lsb-release 
    6  
    7 if [ ! $lsb ]; then # we're probably on etch 
    8 DISTRIB_ID=Debian 
    9 DISTRIB_RELEASE=4.0 
    10 DISTRIB_CODENAME=etch 
    11 DISTRIB_DESCRIPTION="Debian 4.0" 
    12 else 
    13   . $lsb 
    14 fi 
    154 
    165. $libdir/common.sh 
  • cdd-utils/trunk/debian/postinst

    r429 r541  
    1 #! /bin/sh 
    2 # postinst script for cdd-utils 
    3 # 
    4 # see: dh_installdeb(1) 
    5  
    6 set -e 
     1#! /bin/sh -e 
    72 
    83APT_KEY=/usr/share/cdd-utils/apt/key 
  • cdd-utils/trunk/lib/common.sh

    r529 r541  
    5151is_ubuntu () { 
    5252 
    53     if [ "$DISTRIB_ID" = "Ubuntu" ]; then 
     53    cfg=/etc/lsb-release 
     54    if ! exists $cfg; then return 1; fi 
     55 
     56    if grep -q "^DISTRIB_ID=Ubuntu" $cfg; then 
    5457        return 0 
    5558    else