Run: ./make.sh config kernel
--- /dev/null
+#!/bin/bash
+
+cd /usr/src/linux*
+
+cp -f /usr/src/config/kernel/kernel.config .config
+
+make menuconfig
+
+if [ "$?" -eq "0" ]; then
+ cp -f .config /usr/src/config/kernel/kernel.config
+fi
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"
STAGE=$STAGE \
STAGE_ORDER=$STAGE_ORDER \
LOGFILE=$(echo $LOGFILE | sed "s,$BASEDIR,/usr/src,g") \
- bash
+ $COMMAND
if [ $? -ne 0 ]; then
exiterror "chroot error"
;;
shell)
+ shift
# enter a shell inside LFS chroot
# may be used to change kernel settings
prepareenv
- entershell
+ entershell $@
;;
batch)
esac
;;
+config)
+ # config options
+ case "$2" in
+ kernel)
+ prepareenv
+ entershell /usr/local/bin/edit-kernel-config
+ ;;
+ *)
+ usage
+ ;;
+ esac
+ ;;
+
distcc|distccd)
# distcc(d) commands
case "$2" in