#!/bin/sh
#
# copyPebble.sh
# by Eric Walstad <eric@ericwalstad.com>
# Formats the Compact flash found in
# /dev/sda
# and then runs the pebble.update script
# found in /mnt/pebble
clear
echo "Formatting the Compact Flash Card..."
echo "At the 'Command (m for help):' prompt,"
echo "type 'w' and then enter"
fdisk /dev/sda
echo "Making a filesystem on /dev/sda1..."
mkfs.ext2 /dev/sda1
echo "Making a filesystem on /dev/sda2..."
mkfs.ext2 /dev/sda2
echo "Tuning /dev/sda1..."
tune2fs -c 500 /dev/sda1
echo "Tuning /dev/sda2..."
tune2fs -c 500 /dev/sda2
echo "Running the Pebble Update Script..."
cd /mnt/pebble
./pebble.update

