#! /bin/sh vmlinuz=/boot/vmlinuz [ x"$1" = x"-v" ] && VERBOSE="-v" if [ ! -x /usr/sbin/flashcp ]; then [ -n "$VERBOSE" ] && echo Could not find /usr/sbin/flashcp executable. exit 0 fi if ! diff -u - /proc/mtd </dev/null; then [ -n "$VERBOSE" ] && echo $vmlinuz has already been flashed. exit 0 fi exec /usr/sbin/flashcp $VERBOSE $vmlinuz /dev/mtd2