Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'env.sh')
-rwxr-xr-xenv.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/env.sh b/env.sh
index 7b5a487..617ef71 100755
--- a/env.sh
+++ b/env.sh
@@ -18,16 +18,20 @@
# MA 02110-1301, USA.
check_root () {
+ echo "#############################"
echo "Checking for root permissions"
+ echo "#############################"
if [ `whoami` != root ]; then
echo $0 ": Need to run as root. Stopping."
exit
fi
- echo "[OK]"
+ echo "##### OK #####"
}
clean_install () {
+ echo "##########################"
echo "Cleaning install directory"
+ echo "##########################"
if [ -d ./install ]; then
rm -Rf ./install
fi
@@ -36,12 +40,14 @@ clean_install () {
}
copy_files () {
+ echo "#############"
echo "Copying files"
+ echo "#############"
cp sources.list install/etc/apt/
cp sugar-env-setup.sh install/usr/bin/
cp sugar-build-clone.sh install/usr/bin/
cp install/etc/bash.bashrc install/root/.bashrc
- echo "[OK]"
+ echo "##### OK #####"
}
# Installation function
@@ -49,7 +55,9 @@ installenv () {
check_root
clean_install
+ echo "######################"
echo "Installing base system"
+ echo "######################"
debootstrap --variant=buildd quantal ./install http://archive.ubuntu.com/ubuntu/
copy_files