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.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/env.sh b/env.sh
index ffe8969..af9efa1 100755
--- a/env.sh
+++ b/env.sh
@@ -40,6 +40,7 @@ copy_files () {
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]"
}
@@ -52,9 +53,11 @@ installenv () {
debootstrap --variant=buildd quantal ./install http://archive.ubuntu.com/ubuntu/
copy_files
- chroot install sugar-env-setup.sh
+ ./sugar-chroot install sugar-env-setup.sh
+}
- exit
+chrootshell () {
+ ./sugar-chroot install su sugar
}
# Help message
@@ -63,7 +66,6 @@ usage () {
echo $0 install - Install the environment and build Sugar
echo $0 shell - A virtual shell to run Sugar
echo $0 help - Show this help message and exit
- exit
}
#Check for arguments