trivial: cleanup code, drop whitespaces and some more cruft

cleanup-cruft
Fabio Erculiani 14 years ago
parent 7fef86581a
commit 1e50bd01d2

@ -228,24 +228,6 @@ do
nounionfs) nounionfs)
USE_UNIONFS_NORMAL=0 USE_UNIONFS_NORMAL=0
;; ;;
# unionfs=*)
# if [ ! -x /sbin/unionfs ]
# then
# USE_UNIONFS_NORMAL=0
# bad_msg 'unionfs binary not found: aborting use of unionfs!'
# else
# USE_UNIONFS_NORMAL=1
# CMD_UNIONFS=${x#*=}
# echo ${CMD_UNIONFS}|grep , >/dev/null 2>&1
# if [ $? -eq 0 ]
# then
# UID=$(echo ${CMD_UNIONFS#*,})
# UNIONFS=$(echo ${CMD_UNIONFS%,*})
# else
# UNIONFS=${CMD_UNIONFS}
# fi
# fi
# ;;
esac esac
done done
@ -428,7 +410,7 @@ do
while [ "${got_good_root}" != '1' ] while [ "${got_good_root}" != '1' ]
do do
case "${REAL_ROOT}" in case "${REAL_ROOT}" in
LABEL\=*|UUID\=*) LABEL=*|UUID=*)
ROOT_DEV="" ROOT_DEV=""
retval=1 retval=1

@ -30,7 +30,7 @@ get_KV() {
SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g" -e 's/\$([a-z]*)//gi'` EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g" -e 's/\$([a-z]*)//gi'`
if [ -z "${SUB}" ]; if [ -z "${SUB}" ]
then then
# Handle O= build directories # Handle O= build directories
KERNEL_SOURCE_DIR=`grep ^MAKEARGS\ \:\= ${KERNEL_DIR}/Makefile | awk '{ print $4 };'` KERNEL_SOURCE_DIR=`grep ^MAKEARGS\ \:\= ${KERNEL_DIR}/Makefile | awk '{ print $4 };'`

@ -183,7 +183,6 @@ gen_kerncache_is_valid()
test2=$(grep -v "^#" ${KERNEL_CONFIG} | md5sum | cut -d " " -f 1) test2=$(grep -v "^#" ${KERNEL_CONFIG} | md5sum | cut -d " " -f 1)
if [ "${test1}" == "${test2}" ] if [ "${test1}" == "${test2}" ]
then then
echo echo
print_info 1 "No kernel configuration change, skipping kernel build..." print_info 1 "No kernel configuration change, skipping kernel build..."
echo echo

Loading…
Cancel
Save