Explorar o código

be less verbose

Waldemar Brodkorb %!s(int64=10) %!d(string=hai) anos
pai
achega
a32fbb1de4
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      scripts/install.sh

+ 6 - 6
scripts/install.sh

@@ -200,7 +200,7 @@ case $ostype {
 		umount "$1"
 		umount "$1"
 	}
 	}
 	function create_fs {
 	function create_fs {
-		mkfs.$3 "$1"
+		mkfs.$3 -q "$1"
 		tune2fs -c 0 -i 0 "$1"
 		tune2fs -c 0 -i 0 "$1"
 	}
 	}
 	;;
 	;;
@@ -474,21 +474,21 @@ partuuid=$(dd if="$T/firsttrack" bs=1 count=4 skip=$((0x1B8)) 2>/dev/null | \
 
 
 (( quiet )) || print Cleaning out partitions...
 (( quiet )) || print Cleaning out partitions...
 (( datafssz )) && dd if=/dev/zero of="$tgt" bs=1048576 count=1 \
 (( datafssz )) && dd if=/dev/zero of="$tgt" bs=1048576 count=1 \
-    seek=$((cyls - cfgfs - datafssz)) 
+    seek=$((cyls - cfgfs - datafssz)) > /dev/null 2>&1
-dd if=/dev/zero bs=1048576 of="$tgt" count=1 seek=$((spartofs / 2048))
+dd if=/dev/zero bs=1048576 of="$tgt" count=1 seek=$((spartofs / 2048)) > /dev/null 2>&1
 
 
 (( quiet )) || if (( grub )); then
 (( quiet )) || if (( grub )); then
 	print Writing MBR and GRUB2 to target device... system PARTUUID=$partuuid
 	print Writing MBR and GRUB2 to target device... system PARTUUID=$partuuid
 else
 else
 	print Writing MBR to target device... system PARTUUID=$partuuid
 	print Writing MBR to target device... system PARTUUID=$partuuid
 fi
 fi
-dd if="$T/firsttrack" of="$tgt"
+dd if="$T/firsttrack" of="$tgt" > /dev/null 2>&1
 
 
 case $target {
 case $target {
 (solidrun-imx6)
 (solidrun-imx6)
 	fwdir=$(dirname "$src")
 	fwdir=$(dirname "$src")
-	dd if="$fwdir/SPL" of="$tgt" bs=1024 seek=1
+	dd if="$fwdir/SPL" of="$tgt" bs=1024 seek=1 > /dev/null 2>&1
-	dd if="$fwdir/u-boot.img" of="$tgt" bs=1024 seek=42
+	dd if="$fwdir/u-boot.img" of="$tgt" bs=1024 seek=42 > /dev/null 2>&1
 	;;
 	;;
 (raspberry-pi)
 (raspberry-pi)
 	(( quiet )) || print "Creating filesystem on ${bootpart}..."
 	(( quiet )) || print "Creating filesystem on ${bootpart}..."