[procd]: we already have a get_magic_long() in common.sh for sysupgrade, don't break it
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 13 Jul 2014 20:51:17 +0000 (20:51 +0000)
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 13 Jul 2014 20:51:17 +0000 (20:51 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41628 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/system/procd/files/nand.sh

index 032f02a..5f307d0 100644 (file)
@@ -36,7 +36,7 @@ nand_find_ubi() {
        done
 }
 
-get_magic_long() {
+nand_get_magic_long() {
        dd if="$1" skip=$2 bs=4 count=1 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
 }
 
@@ -70,7 +70,7 @@ identify_magic() {
 
 
 identify() {
-       identify_magic $(get_magic_long "$1" "${2:-0}")
+       identify_magic $(nand_get_magic_long "$1" "${2:-0}")
 }
 
 identify_tar() {