Magellan Linux

Diff of /trunk/mlivecdbuild/mlivecdbuild2.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 471 by niro, Thu Apr 19 17:03:14 2007 UTC revision 472 by niro, Thu Apr 19 17:09:17 2007 UTC
# Line 86  custom_packages() Line 86  custom_packages()
86   if [[ -n ${packages} ]]   if [[ -n ${packages} ]]
87   then   then
88   :> ${CDCHROOTDIR}/.installrc   :> ${CDCHROOTDIR}/.installrc
89    
90     # respect proxies
91     [[ -n ${http_proxy} ]] && add_initrc "export http_proxy=${http_proxy}"
92     [[ -n ${ftp_proxy} ]] && add_initrc "export ftp_proxy=${ftp_proxy}"
93     [[ -n ${no_proxy} ]] && add_initrc "export no_proxy=${no_proxy}"
94    
95   local i   local i
96   for i in ${packages}   for i in ${packages}
97   do   do
# Line 278  enter_livecd() Line 284  enter_livecd()
284   HOME=/root \   HOME=/root \
285   TERM=$TERM PS1='\u:\w\$ ' \   TERM=$TERM PS1='\u:\w\$ ' \
286   PATH=/bin:/usr/bin:/sbin:/usr/sbin \   PATH=/bin:/usr/bin:/sbin:/usr/sbin \
287     http_proxy=${http_proxy} \
288     ftp_proxy=${ftp_proxy} \
289     no_proxy=${no_proxy} \
290   /bin/bash -i   /bin/bash -i
291  }  }
292    
# Line 294  usage() Line 303  usage()
303   echo "    isogen     - generate the final livecd iso image"   echo "    isogen     - generate the final livecd iso image"
304   echo "    dvdgen     - same as isogen but creates a dvd-image"   echo "    dvdgen     - same as isogen but creates a dvd-image"
305   echo "    all        - runs all tasks to get a livecd from zero"   echo "    all        - runs all tasks to get a livecd from zero"
306     echo "    enter      - enters the rootfs of a livecd"
307   echo   echo
308   echo "    for example '$(basename $0) all default'"   echo "    for example '$(basename $0) all default'"
309   echo "    creates a livecd using the default profile."   echo "    creates a livecd using the default profile."
# Line 324  case $1 in Line 334  case $1 in
334   generate_iso   generate_iso
335   fi   fi
336   ;;   ;;
337     enter) enter_livecd ;;
338   *|'') usage;;   *|'') usage;;
339  esac  esac

Legend:
Removed from v.471  
changed lines
  Added in v.472