treewide: replace backticks by $(...) in gen_*_img.sh scripts
This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> [decapitalized patch subject at submitter's request] Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
		 Adrian Schmutzler
					Adrian Schmutzler
				
			
				
					committed by
					
						 Christian Lamparter
						Christian Lamparter
					
				
			
			
				
	
			
			
			 Christian Lamparter
						Christian Lamparter
					
				
			
						parent
						
							0bbfc3dff7
						
					
				
				
					commit
					c5b4fa20fa
				
			| @@ -15,7 +15,7 @@ ROOTFSSIZE="$5" | |||||||
| head=4 | head=4 | ||||||
| sect=63 | sect=63 | ||||||
|  |  | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 4096 -t 83 -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 4096 -t 83 -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| BOOTOFFSET="$(($1 / 512))" | BOOTOFFSET="$(($1 / 512))" | ||||||
| BOOTSIZE="$(($2 / 512))" | BOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ ROOTFSSIZE="$5" | |||||||
| head=4 | head=4 | ||||||
| sect=63 | sect=63 | ||||||
|  |  | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| BOOTOFFSET="$(($1 / 512))" | BOOTOFFSET="$(($1 / 512))" | ||||||
| BOOTSIZE="$(($2 / 512))" | BOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ ROOTFSSIZE="$5" | |||||||
| head=4 | head=4 | ||||||
| sect=63 | sect=63 | ||||||
|  |  | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| BOOTOFFSET="$(($1 / 512))" | BOOTOFFSET="$(($1 / 512))" | ||||||
| BOOTSIZE="$(($2 / 512))" | BOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ ROOTFSSIZE="$5" | |||||||
| head=4 | head=4 | ||||||
| sect=2048 | sect=2048 | ||||||
|  |  | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| BOOTOFFSET="$(($1 / 512))" | BOOTOFFSET="$(($1 / 512))" | ||||||
| BOOTSIZE="$(($2 / 512))" | BOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ ROOTFSSIZE="$5" | |||||||
| head=4 | head=4 | ||||||
| sect=63 | sect=63 | ||||||
|  |  | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 4096 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 4096 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| BOOTOFFSET="$(($1 / 512))" | BOOTOFFSET="$(($1 / 512))" | ||||||
| BOOTSIZE="$(($2 / 512))" | BOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ sect=63 | |||||||
|  |  | ||||||
| # Create two empty partitions followed by the boot partition with | # Create two empty partitions followed by the boot partition with | ||||||
| # the ./boot/zImage and then the rootfs partition. | # the ./boot/zImage and then the rootfs partition. | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -t 83 -n -p 0 -p 0 -p ${BOOTFSSIZE}M -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -t 83 -n -p 0 -p 0 -p ${BOOTFSSIZE}M -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| BOOTOFFSET="$(($1 / 512))" | BOOTOFFSET="$(($1 / 512))" | ||||||
| BOOTSIZE="$(($2 / 512))" | BOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
| @@ -19,4 +19,4 @@ ROOTFSSIZE="$3" | |||||||
| head=4 | head=4 | ||||||
| sect=16 | sect=16 | ||||||
|  |  | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l $ROOTFSOFFSET -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l $ROOTFSOFFSET -t 83 -p ${ROOTFSSIZE}M) | ||||||
|   | |||||||
| @@ -56,7 +56,7 @@ sect=63 | |||||||
|  |  | ||||||
| # create real partition table using fdisk | # create real partition table using fdisk | ||||||
| printf "Creating partition table: " | printf "Creating partition table: " | ||||||
| set `ptgen -o "$OUTFILE" -h $head -s $sect -l 1024 -S 0x$SIGNATURE $ptgen_args` | set $(ptgen -o "$OUTFILE" -h $head -s $sect -l 1024 -S 0x$SIGNATURE $ptgen_args) | ||||||
| printf "Done\n" | printf "Done\n" | ||||||
|  |  | ||||||
| # install bootloader | # install bootloader | ||||||
|   | |||||||
| @@ -21,7 +21,7 @@ head=4 | |||||||
| sect=63 | sect=63 | ||||||
|  |  | ||||||
| # set the Boot stream partition size to 1M | # set the Boot stream partition size to 1M | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t 53 -p 1M -t 83 -p ${ROOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t 53 -p 1M -t 83 -p ${ROOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| ROOTFS1OFFSET="$(($3 / 512))" | ROOTFS1OFFSET="$(($3 / 512))" | ||||||
| ROOTFS1SIZE="$(($4 / 512))" | ROOTFS1SIZE="$(($4 / 512))" | ||||||
|   | |||||||
| @@ -23,7 +23,7 @@ head=4 | |||||||
| sect=63 | sect=63 | ||||||
|  |  | ||||||
| # Set the u-boot storage to 2M | # Set the u-boot storage to 2M | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t 53 -p 2M -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t 53 -p 2M -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| UBOOTOFFSET="$(($1 / 512))" | UBOOTOFFSET="$(($1 / 512))" | ||||||
| UBOOTSIZE="$(($2 / 512))" | UBOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ ROOTFSSIZE="$5" | |||||||
| head=4 | head=4 | ||||||
| sect=63 | sect=63 | ||||||
|  |  | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| BOOTOFFSET="$(($1 / 512))" | BOOTOFFSET="$(($1 / 512))" | ||||||
| BOOTSIZE="$(($2 / 512))" | BOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ ALIGN="$6" | |||||||
| rm -f "$OUTPUT" | rm -f "$OUTPUT" | ||||||
|  |  | ||||||
| # create partition table | # create partition table | ||||||
| set `ptgen -o "$OUTPUT" -h 16 -s 32 -l ${ALIGN} -t 0x27 -p ${KERNELSIZE}m -t 0x83 -p ${ROOTFSSIZE}m` | set $(ptgen -o "$OUTPUT" -h 16 -s 32 -l ${ALIGN} -t 0x27 -p ${KERNELSIZE}m -t 0x83 -p ${ROOTFSSIZE}m) | ||||||
|  |  | ||||||
| KERNELOFFSET="$(($1 / 512))" | KERNELOFFSET="$(($1 / 512))" | ||||||
| ROOTFSOFFSET="$(($3 / 512))" | ROOTFSOFFSET="$(($3 / 512))" | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ UBOOT="$6" | |||||||
| head=4 | head=4 | ||||||
| sect=63 | sect=63 | ||||||
|  |  | ||||||
| set `ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M` | set $(ptgen -o $OUTPUT -h $head -s $sect -l 1024 -t c -p ${BOOTFSSIZE}M -t 83 -p ${ROOTFSSIZE}M) | ||||||
|  |  | ||||||
| BOOTOFFSET="$(($1 / 512))" | BOOTOFFSET="$(($1 / 512))" | ||||||
| BOOTSIZE="$(($2 / 512))" | BOOTSIZE="$(($2 / 512))" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user