prep gets command line
This commit is contained in:
parent
5ee0efa542
commit
740ec2a7dc
@ -9,6 +9,7 @@ DIR=${APP}-${VERSION}
|
|||||||
#update version numbers automatically - so you don't have to
|
#update version numbers automatically - so you don't have to
|
||||||
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
|
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
|
||||||
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone
|
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone
|
||||||
|
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone-prep
|
||||||
|
|
||||||
# change the parent directory name to debian format
|
# change the parent directory name to debian format
|
||||||
mv ../${APP} ../${DIR}
|
mv ../${APP} ../${DIR}
|
||||||
|
@ -25,7 +25,7 @@ VERSION="1.00"
|
|||||||
|
|
||||||
# typically /dev/sdb or /dev/sdc, depending upon how
|
# typically /dev/sdb or /dev/sdc, depending upon how
|
||||||
# many drives there are on your system
|
# many drives there are on your system
|
||||||
MICROSD_DRIVE=$1
|
MICROSD_DRIVE=
|
||||||
|
|
||||||
# IP address of the router (gateway)
|
# IP address of the router (gateway)
|
||||||
ROUTER_IP_ADDRESS="192.168.1.254"
|
ROUTER_IP_ADDRESS="192.168.1.254"
|
||||||
@ -41,7 +41,44 @@ DEBIAN_FILE_NAME="debian-jessie-console-armhf-2014-08-13"
|
|||||||
DOWNLOAD_LINK1="https://rcn-ee.net/deb/rootfs/jessie/$DEBIAN_FILE_NAME.tar.xz"
|
DOWNLOAD_LINK1="https://rcn-ee.net/deb/rootfs/jessie/$DEBIAN_FILE_NAME.tar.xz"
|
||||||
DOWNLOAD_LINK2="http://ynezz.ibawizard.net/beagleboard/jessie/$DEBIAN_FILE_NAME.tar.xz"
|
DOWNLOAD_LINK2="http://ynezz.ibawizard.net/beagleboard/jessie/$DEBIAN_FILE_NAME.tar.xz"
|
||||||
|
|
||||||
if [ ! MICROSD_DRIVE ]; then
|
function show_help {
|
||||||
|
echo ''
|
||||||
|
echo 'freedombone-prep -d [microSD device] --ip [BBB static IP address] --iprouter [Router IP address]'
|
||||||
|
echo ''
|
||||||
|
}
|
||||||
|
|
||||||
|
while [[ $# > 1 ]]
|
||||||
|
do
|
||||||
|
key="$1"
|
||||||
|
|
||||||
|
case $key in
|
||||||
|
-h|--help)
|
||||||
|
show_help
|
||||||
|
;;
|
||||||
|
# Drive path for the microSD
|
||||||
|
-d|--drive)
|
||||||
|
shift
|
||||||
|
MICROSD_DRIVE="$1"
|
||||||
|
;;
|
||||||
|
# BBB static IP address on the LAN
|
||||||
|
--ip)
|
||||||
|
shift
|
||||||
|
BBB_FIXED_IP_ADDRESS="$1"
|
||||||
|
;;
|
||||||
|
# Router IP address on the LAN
|
||||||
|
--iprouter)
|
||||||
|
shift
|
||||||
|
ROUTER_IP_ADDRESS="$1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# unknown option
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! $MICROSD_DRIVE ]; then
|
||||||
echo 'You need to specify a drive for the connected microSD.'
|
echo 'You need to specify a drive for the connected microSD.'
|
||||||
echo 'This can most easily be found by removing the microSD, then'
|
echo 'This can most easily be found by removing the microSD, then'
|
||||||
echo 'running:'
|
echo 'running:'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user