]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - tools/make-include
Added new package: dosfstools.
[ipfire-3.x.git] / tools / make-include
index 34745ccfb67d60a69edb23bf84e5ee1aa473c56e..e23faab7f60b85d19bb44df2976135f0d38816d4 100644 (file)
@@ -114,6 +114,8 @@ entershell() {
        if [ ! -e $LFS/usr/src/lfs/ ]; then
                exiterror "No such file or directory: $LFS/usr/src/lfs/"
        fi
+
+       COMMAND=${@-bash} # Run command, given as parameters.
        
        echo -ne "Entering ${BOLD}$MACHINE${NORMAL} LFS chroot, type exit to return to host environment\n"
        
@@ -145,7 +147,7 @@ entershell() {
                STAGE=$STAGE \
                STAGE_ORDER=$STAGE_ORDER \
                LOGFILE=$(echo $LOGFILE | sed "s,$BASEDIR,/usr/src,g") \
-               bash
+               $COMMAND
 
        if [ $? -ne 0 ]; then
                exiterror "chroot error"
@@ -513,8 +515,6 @@ prepareenv() {
        export CCACHE_PREFIX="distcc"
        export DISTCC_DIR=$BASEDIR/distcc
 
-       distcc_get_hosts
-
        # Remove pre-install list of installed files in case user erase some files before rebuild
        rm -f $LFS/usr/src/lsalr 2>/dev/null
 }
@@ -536,6 +536,7 @@ build() {
        build_spy_send_profile
        build_spy state compiling
        build_spy start
+       distcc_get_hosts
 
        if [ -f $BASEDIR/log_${TARGET}/02_base/stage2-LFS ]; then
                prepareenv