mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
c5b4fa20fa
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>
23 lines
421 B
Bash
Executable File
23 lines
421 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright 2018 NXP
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
set -x
|
|
[ $# -eq 3 ] || {
|
|
echo "SYNTAX: $0 <file> <rootfs part offset> <rootfs size>"
|
|
exit 1
|
|
}
|
|
|
|
OUTPUT="$1"
|
|
ROOTFSOFFSET="$(($2 * 1024))"
|
|
ROOTFSSIZE="$3"
|
|
|
|
head=4
|
|
sect=16
|
|
|
|
set $(ptgen -o $OUTPUT -h $head -s $sect -l $ROOTFSOFFSET -t 83 -p ${ROOTFSSIZE}M)
|