OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 1... Line -...
1 fwtool_check_signature() { -  
2 [ $# -gt 1 ] && return 1 -  
3   -  
4 [ ! -x /usr/bin/ucert ] && { -  
5 if [ "$REQUIRE_IMAGE_SIGNATURE" = 1 ]; then -  
6 return 1 -  
7 else -  
8 return 0 -  
9 fi -  
10 } -  
11   -  
12 if ! fwtool -q -s /tmp/sysupgrade.ucert "$1"; then -  
13 echo "Image signature not found" -  
14 [ "$REQUIRE_IMAGE_SIGNATURE" = 1 -a "$FORCE" != 1 ] && { -  
15 echo "Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware" -  
16 } -  
17 [ "$REQUIRE_IMAGE_SIGNATURE" = 1 ] && return 1 -  
18 return 0 -  
19 fi -  
20   -  
21 fwtool -q -T -s /dev/null "$1" | \ -  
22 ucert -V -m - -c "/tmp/sysupgrade.ucert" -P /etc/opkg/keys -  
23   -  
24 return $? -  
25 } -  
26   -  
27 fwtool_check_image() { 1 fwtool_check_image() {
28 [ $# -gt 1 ] && return 1 2 [ $# -gt 1 ] && return 1
Line 29... Line 3...
29   3