--- elwix/config/etc/default/rc.cfg 2014/09/11 22:55:37 1.1.2.6 +++ elwix/config/etc/default/rc.cfg 2014/09/17 21:39:17 1.2.2.2 @@ -2,13 +2,13 @@ # # U-boot cfg nand map load/save management script # -# $Id: rc.cfg,v 1.1.2.6 2014/09/11 22:55:37 misho Exp $ +# $Id: rc.cfg,v 1.2.2.2 2014/09/17 21:39:17 misho Exp $ CFG_NAND_LIST="/etc/cfg.map" CFG_NAND_MAP="/dev/ada0g" CFG_NAND_SIZE=262144 -UPGRADE_GPIO_PINS="" +UPGRADE_GPIO_PINS="1 2 3" cd ${2:-/etc} @@ -61,7 +61,7 @@ case "$1" in echo " You can upload now elwix_firmware.bin image to device with \"firmware\" name!!!" echo " Example: put elwix_firmware.bin firmware" for i in ${UPGRADE_GPIO_PINS}; do - gpioctl $i 1 >/dev/null 2>&1 + gpioctl $i 1 >/dev/null 2>&1 || pceng "$i=0" >/dev/null 2>&1 done TFTPd -wR ;;