]> git.wh0rd.org Git - home.git/commitdiff
set accept license
authorMike Frysinger <vapier@gentoo.org>
Tue, 5 Feb 2013 23:39:18 +0000 (18:39 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 5 Feb 2013 23:39:18 +0000 (18:39 -0500)
.bin/cros-setup-chroot

index c8fe7aa398365599d6672a59fd4f619024f2d06a..0b34ba2a511d240b7dff23a00b1c262a923f770f 100755 (executable)
@@ -20,8 +20,11 @@ cat ~/.profile.d/PS1.sh
 sed -e '1{/PS1=/d}' ${chr}/etc/profile.d/chromiumos-niceties.sh
 ) > ${chome}/.ps1.sh
 sudo sh -c 'echo export LANG=en_US.UTF8 > '"${chr}/etc/profile.d/LANG.sh"
-sudo sh -c 'echo FEATURES=\"\$FEATURES noauto\" > '"${chr}/etc/make.conf.user"
-sudo sh -c 'echo EMERGE_DEFAULT_OPTS=\"--color y\" > '"${chr}/etc/make.conf.user"
+sudo sh -c "cat > '${chr}/etc/make.conf.user'" <<-\EOF
+       FEATURES="${FEATURES} noauto"
+       EMERGE_DEFAULT_OPTS="--color y"
+       ACCEPT_LICENSE="${ACCEPT_LICENSE} Google-TOS"
+EOF
 sudo sh -c 'echo -g > '"${chr}/etc/ps1_append"
 sudo mv ${chome}/.ps1.sh ${chr}/etc/profile.d/chromiumos-niceties.sh
 for f in .nanorc .gdbinit .gitconfig ; do