Kill trailing whitespaces!!!!!

cleanup-cruft
Fabio Erculiani 12 years ago
parent 90da2a1a66
commit 06af416264

@ -1,4 +1,4 @@
#!/bin/ash #!/bin/sh
. /etc/initrd.defaults . /etc/initrd.defaults
@ -341,7 +341,6 @@ findnfsmount() {
NFSIP=$(echo $OPTION | sed -e "s/=/ /g" | cut -d " " -f 2) NFSIP=$(echo $OPTION | sed -e "s/=/ /g" | cut -d " " -f 2)
fi fi
done done
# Obtain NFSPATH # Obtain NFSPATH
OPTIONS=$(busybox dmesg | grep rootpath | sed -e "s/,/ /g") OPTIONS=$(busybox dmesg | grep rootpath | sed -e "s/,/ /g")
for OPTION in $OPTIONS for OPTION in $OPTIONS
@ -433,11 +432,9 @@ find_real_device() {
check_loop() { check_loop() {
if [ "${LOOP}" = '' -o ! -e "${CDROOT_PATH}/${LOOP}" ] if [ "${LOOP}" = '' -o ! -e "${CDROOT_PATH}/${LOOP}" ]
then then
bad_msg "Invalid loop location: ${LOOP}" bad_msg "Invalid loop location: ${LOOP}"
bad_msg 'Please export LOOP with a valid location, or reboot and pass a proper loop=...' bad_msg 'Please export LOOP with a valid location, or reboot and pass a proper loop=...'
bad_msg 'kernel command line!' bad_msg 'kernel command line!'
run_shell run_shell
fi fi
} }
@ -689,7 +686,6 @@ cmdline_hwopts() {
# Shouldnt need to sort this as the following loop should figure out the # Shouldnt need to sort this as the following loop should figure out the
# duplicates and strip them out # duplicates and strip them out
#MY_HWOPTS=$(echo ${MY_HWOPTS}| sort) #MY_HWOPTS=$(echo ${MY_HWOPTS}| sort)
for x in ${MY_HWOPTS} for x in ${MY_HWOPTS}
do do
FOUND=0 FOUND=0
@ -1155,9 +1151,7 @@ openLUKS() {
} }
startLUKS() { startLUKS() {
# if key is set but key device isn't, find it # if key is set but key device isn't, find it
[ -n "${CRYPT_ROOT_KEY}" ] && [ -z "${CRYPT_ROOT_KEYDEV}" ] \ [ -n "${CRYPT_ROOT_KEY}" ] && [ -z "${CRYPT_ROOT_KEYDEV}" ] \
&& sleep 6 && bootstrapKey "ROOT" && sleep 6 && bootstrapKey "ROOT"

@ -532,7 +532,6 @@ do
prompt_user "REAL_ROOT" "root block device" prompt_user "REAL_ROOT" "root block device"
continue continue
fi fi
ROOT_DEV="${REAL_ROOT#*=}" ROOT_DEV="${REAL_ROOT#*=}"
if [ "${ROOT_DEV}" != 'ZFS' ] if [ "${ROOT_DEV}" != 'ZFS' ]
then then
@ -564,9 +563,7 @@ do
ROOTFSTYPE=zfs ROOTFSTYPE=zfs
break break
fi fi
done
done;
else else
got_good_root=0 got_good_root=0
fi fi
@ -577,7 +574,6 @@ do
prompt_user "REAL_ROOT" "root block device" prompt_user "REAL_ROOT" "root block device"
got_good_root=0 got_good_root=0
fi fi
continue continue
;; ;;
esac esac

@ -903,7 +903,6 @@ create_initramfs() {
gzip) compress_ext='.gz' compress_cmd="${cmd_gzip} -f -9" ;; gzip) compress_ext='.gz' compress_cmd="${cmd_gzip} -f -9" ;;
lzop) compress_ext='.lzo' compress_cmd="${cmd_lzop} -f -9" ;; lzop) compress_ext='.lzo' compress_cmd="${cmd_lzop} -f -9" ;;
esac esac
if [ -n "${compression}" ]; then if [ -n "${compression}" ]; then
print_info 1 " >> Compressing cpio data (${compress_ext})..." print_info 1 " >> Compressing cpio data (${compress_ext})..."
${compress_cmd} "${CPIO}" || gen_die "Compression (${compress_cmd}) failed" ${compress_cmd} "${CPIO}" || gen_die "Compression (${compress_cmd}) failed"

Loading…
Cancel
Save