Diff for /elwix/config/etc/rootfs/rc.er between versions 1.1 and 1.2

version 1.1, 2014/09/23 20:10:52 version 1.2, 2017/02/13 16:52:47
Line 0 Line 1
   #!/bin/sh
   #
   # Shell script for cfg ER help
   #
   
   CFG_NAND_MAP="/dev/ada0g"
   CFG_NAND_SIZE=262144
   
   cd ${2:-/etc}
   
   case "$1" in
           load)
                   echo "Tries emergency load of NAND ..."
                   dd if=${CFG_NAND_MAP} bs=${CFG_NAND_SIZE} 2>&- | \
                         gunzip 2>&- | cpio -iud 2>&- || exit 1
                   echo "NAND loaded successfully!"
                   ;;
           erase)
                   dd if=/dev/zero of=${CFG_NAND_MAP} bs=${CFG_NAND_SIZE} \
                           count=1 conv=sync 2>&- || exit 1
                   echo "Config NAND was erased!"
                   ;;
           *)
                   echo "Missing parameter - available options are (load | erase)"
                   ;;
   esac

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>