# HG changeset patch # User Michael Spacefalcon # Date 1377458860 0 # Node ID 5c1e6b7b5bd10f80f6ff80d2ebaf092a4f123806 # Parent d01098eccf21cb5172ae21c96a7f2a19e457b3f0 nuc-fw: cheezy config.sh hand-holding script created diff -r d01098eccf21 -r 5c1e6b7b5bd1 nuc-fw/config.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nuc-fw/config.sh Sun Aug 25 19:27:40 2013 +0000 @@ -0,0 +1,31 @@ +#!/bin/sh +# This shell script is meant to be invoked directly by users; no Makefile +# or other script invokes it. The purpose of this script to hand-hold +# the user through creating a minimal valid build.conf file (without the +# user having some existing one) to allow the build to proceed. + +echo 'Please select the target you wish to build the firmware for:' +echo +echo '1: Closedmoko GTA01/02 GSM modem' +echo '2: Pirelli DP-L10 feature phone' +echo +echo -n 'Please make your selection: ' +read userinput + +case "$userinput" in + 1) + TARGET=gtamodem + ;; + 2) + TARGET=pirelli + ;; + *) + echo 'Invalid selection' + exit 1; + ;; +esac + +echo +echo "target $TARGET" > build.conf +echo "build.conf created; you can now run 'make'" +exit 0