#!/bin/bash# 参考文章:# 1. Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数# http://c.biancheng.net/cpp/view/2739.html# Sending partition shell # Partitioning... # Partitioning... # Formatting sd partition # partition size in MBBOOTLOAD_RESERVE=8 # bootload 8MB BOOT_ROM_SIZE=8 # 启动rom 8MBSYSTEM_ROM_SIZE=512 # 系统rom 512MBCACHE_SIZE=512 # 缓存 512MBRECOVERY_ROM_SIZE=8 # 恢复rom 8MBVENDER_SIZE=8 # 供货商 8MBMISC_SIZE=8 # 杂项 8MBhelp() {# basename String [ Suffix ]# basename 命令读取 String 参数,删除以 /(斜杠) 结尾的前缀以及任何指定的 Suffix 参数,# 并将剩余的基本文件名称写至标准输出。bn=`basename $0`cat << EOFusage $bn