File:  [ELWIX - Embedded LightWeight unIX -] / elwix / install2uboot.sh
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Mon Jan 20 08:53:13 2014 UTC (10 years, 5 months ago) by misho
Branches: elwix2_2
add install to u-boot image

    1: #!/bin/sh
    2: #
    3: # ELWIX install script for u-boot image
    4: #
    5: # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
    6: #    by Michael Pounov <misho@elwix.org>
    7: #
    8: # $Id: install2uboot.sh,v 1.1.2.1 2014/01/20 08:53:13 misho Exp $
    9: #
   10: 
   11: [ -r ./config/rc.elwix ] && . ./config/rc.elwix
   12: if [ X"${ELWIX_IS_CONFIGURED}" != X"YES" ]; then
   13: 	echo
   14: 	echo "ELWIX project is not configured !?!"
   15: 	echo
   16: 	exit 1
   17: fi
   18: 
   19: if [ "${USER}" != "root" ]; then
   20: 	echo
   21: 	echo "ELWIX project is not configured - install must build under root !?!"
   22: 	echo
   23: 	exit 1
   24: fi
   25: 
   26: 
   27: ### main()
   28: 
   29: if [ -z "$1" -o ! -r "$1" ]; then
   30: 	echo
   31: 	echo "Error:: ELWIX image file '$1' not found!"
   32: 	echo
   33: 	exit 2
   34: fi
   35: 
   36: 
   37: echo "ELWIX u-boot image $1 complete."

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