OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 1... Line 1...
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
Line 2... Line 2...
2   2  
3 set -x 3 set -x
4 [ $# -eq 5 ] || { 4 [ $# -eq 3 ] || {
5 echo "SYNTAX: $0 <file> <bootfs image> <rootfs image> <bootfs size> <rootfs size>" 5 echo "SYNTAX: $0 <file> <bootfs image> <rootfs image>"
6 exit 1 6 exit 1
Line 7... Line 7...
7 } 7 }
8   8  
9 OUTPUT="$1" 9 OUTPUT="$1"
10 BOOTFS="$2" 10 BOOTFS="$2"
11 ROOTFS="$3" 11 ROOTFS="$3"
Line 12... Line 12...
12 BOOTFSSIZE="$4" 12 let "BOOTFSSIZE=(`stat -c%s "$2"` + 1048575) / 1048576"
13 ROOTFSSIZE="$5" 13 let "ROOTFSSIZE=(`stat -c%s "$3"` + 1048575) / 1048576"
Line 14... Line 14...
14   14