Changeset 894 for trunk/debirf/fs/usr/bin/debirf
- Timestamp:
- Jan 10, 2008 7:36:34 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/debirf/fs/usr/bin/debirf (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/fs/usr/bin/debirf
r891 r894 33 33 34 34 # 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,traceroute35 export INCLUDE=less,udhcpc 36 export EXCLUDE=bsdmainutils,cron,ed,dhcp3-common,dhcp3-client,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute 37 37 38 38 ############################################################### … … 62 62 cat <<EOF 63 63 It 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 64 README file included with this package on how to setup a profile. 67 65 EOF 68 66 } … … 282 280 source "$DEBIRF_CONF" 283 281 else 284 echo " $DEBIRF_CONFnot found."282 echo "Configuration file '$DEBIRF_CONF' not found." 285 283 usage_profile 286 284 exit 1 … … 288 286 289 287 # check modules directory 290 if [ ! -d "$DEBIRF_MODULES" ] ; then291 echo " $DEBIRF_MODULES does not exist."288 if [ ! -d "$DEBIRF_MODULES" ] || [ -z "$(ls "$DEBIRF_MODULES")" ] ; then 289 echo "Modules directoy '$DEBIRF_MODULES' does not exist or is empty." 292 290 usage_profile 293 291 exit 1 294 292 fi 295 if [ $(ls "$DEBIRF_MODULES" -1 | wc -l) = 0 ] ; then 296 echo "$DEBIRF_MODULES is empty."297 usage_profile 298 exit 1299 fi 293 for MODULE in $(find "$DEBIRF_MODULES") ; do 294 if [ ! -s "$MODULE" ] ; then 295 failure "Module '$MODULE' is a broken link or empty file." 296 fi 297 done 300 298 301 299 # check buildd … … 332 330 # determine write mode 333 331 if [ -d "$DEBIRF_ROOT" ] ; then 334 echo "Debirf root '$DEBIRF_ROOT'already exists."332 echo "Debirf root already exists." 335 333 if [ -z "$WRITE_MODE" ] ; then 336 334 echo "Select one of the following:"
Note: See TracChangeset
for help on using the changeset viewer.

