Ignore:
Timestamp:
Jan 10, 2008 7:36:34 PM (5 years ago)
Author:
jrollins
Message:

debirf: a bunch of little changes to clean things up. also removed
old build-debirf-kernel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debirf/fs/usr/bin/debirf

    r891 r894  
    3333 
    3434# list of packages to include/exclude from debootstrap 
    35 export INCLUDE=less 
    36 export EXCLUDE=bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute 
     35export INCLUDE=less,udhcpc 
     36export EXCLUDE=bsdmainutils,cron,ed,dhcp3-common,dhcp3-client,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute 
    3737 
    3838############################################################### 
     
    6262    cat <<EOF 
    6363It looks like your profile is not correctly formed.  Please refer to the 
    64 README file included with this package. 
    65 On Debian, unpack one of the example profiles from the debirf docs: 
    66 tar xzvf /usr/share/doc/debirf/example-profiles/<profile-name>.tgz  
     64README file included with this package on how to setup a profile. 
    6765EOF 
    6866} 
     
    282280    source "$DEBIRF_CONF" 
    283281else 
    284     echo "$DEBIRF_CONF not found." 
     282    echo "Configuration file '$DEBIRF_CONF' not found." 
    285283    usage_profile 
    286284    exit 1 
     
    288286 
    289287# check modules directory 
    290 if [ ! -d "$DEBIRF_MODULES" ] ; then 
    291     echo "$DEBIRF_MODULES does not exist." 
     288if [ ! -d "$DEBIRF_MODULES" ] || [ -z "$(ls "$DEBIRF_MODULES")" ] ; then 
     289    echo "Modules directoy '$DEBIRF_MODULES' does not exist or is empty." 
    292290    usage_profile 
    293291    exit 1 
    294292fi 
    295 if [ $(ls "$DEBIRF_MODULES" -1 | wc -l) = 0 ] ; then 
    296     echo "$DEBIRF_MODULES is empty." 
    297     usage_profile 
    298     exit 1 
    299 fi 
     293for MODULE in $(find "$DEBIRF_MODULES") ; do 
     294    if [ ! -s "$MODULE" ] ; then 
     295        failure "Module '$MODULE' is a broken link or empty file." 
     296    fi 
     297done 
    300298 
    301299# check buildd 
     
    332330# determine write mode 
    333331if [ -d "$DEBIRF_ROOT" ] ; then 
    334     echo "Debirf root '$DEBIRF_ROOT' already exists." 
     332    echo "Debirf root already exists." 
    335333    if [ -z "$WRITE_MODE" ] ; then 
    336334        echo "Select one of the following:" 
Note: See TracChangeset for help on using the changeset viewer.