initrd.scripts: wrap >80 chars lines in devicelist()

master
Fabio Erculiani 12 years ago
parent ce1e10241b
commit 3790c6345a

@ -334,9 +334,13 @@ devicelist() {
DEVICES="$DEVICES /dev/iseries/vcd*" DEVICES="$DEVICES /dev/iseries/vcd*"
# builtin mmc/sd card reader devices # builtin mmc/sd card reader devices
DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*" DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*"
# fallback scanning, this might scan something twice, but it's better than # fallback scanning, this might scan something twice, but it's better than
# failing to boot. # failing to boot.
[ -e /proc/partitions ] && DEVICES="${DEVICES} $(awk '/([0-9]+[[:space:]]+)/{print "/dev/" $4}' /proc/partitions)" local parts=$(awk '/([0-9]+[[:space:]]+)/{print "/dev/" $4}' \
/proc/partitions)
[ -e /proc/partitions ] && DEVICES="${DEVICES} ${parts}"
echo ${DEVICES} echo ${DEVICES}
} }

Loading…
Cancel
Save