Nevermind, Sheeva and Guru use same UBI arguments

This commit is contained in:
Mike Staszel 2010-06-27 23:06:13 -07:00
parent a44f0194dc
commit a48f067f06

View file

@ -1,10 +1,15 @@
#!/bin/bash
#
# Plugbox Linux Distribution Image Builder
# Version 0.2.1
# Version 0.3.0
#
# Licensed under the GPLv2.
#
# This script builds a Plugbox distribution/image.
# First, it downloads and installs packages to the workingdir,
# then configures some basics, sets the root password to "root",
# and then creates a rootts.tar.gz and/or a UBI image, ready to flash.
#
# Usage: ./distro-builder workingdir
#
# NOTE: This script is interactive.
@ -12,10 +17,9 @@
#
# ==== Variables to set ====
INSTALLEDPKGS="base kernel26-withlinux openssh openssl heimdal"
RELEASEVER=1.1
RELEASEVER=1.1-beta1
MAKETARGZ=1
MAKEUBIIMGSHEEVA=0
MAKEUBIIMGGURU=1
MAKEUBIIMG=1
# ==== The Process ====
mkdir -p $1
echo -e "\033[1mInstalling packages...\033[0m"
@ -46,8 +50,8 @@ else
fi
# Here is the UBI image part if you set MAKEUBIIMG to 1
if [ $MAKEUBIIMGGURU = 1 ]; then
echo -e "\033[1mCreating a rootfs.ubi.img for GuruPlug...\033[0m"
if [ $MAKEUBIIMG = 1 ]; then
echo -e "\033[1mCreating a rootfs.ubi.img...\033[0m"
cat << EOF > ./ubi.cfg
[ubifs]
mode=ubi
@ -62,7 +66,7 @@ EOF
ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 ./ubi.cfg
rm -f ubi.cfg rootfs.ubifs.img
else
echo -e "\033[1mNot creating UBI image for GuruPlug...\033[0m"
echo -e "\033[1mNot creating UBI image...\033[0m"
fi
echo -e "\033[1mCleaning up...\033[0m"