ajout de env.sh et downloader.sh

This commit is contained in:
Jérémy MANSON 2017-10-16 19:42:58 +02:00
parent 824ad82ba0
commit 866226a08b
2 changed files with 15 additions and 0 deletions

4
downloader.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
WGETCMD="wget -P $CHROOT/"
$WGETCMD $REPO/$STAGE3
$WGETCMD $REPO/$SNAPSHOT & $WGETCMD $REPO/$KERNEL & $WGETCMD $REPO/$MODULES

11
env.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bsh
SWAP=/dev/sda2
SYS=/dev/sda1
CHROOT=/mnt/gentoo
STAGE3=stage3-amd64-20170907.tar.bz2
SNAPSHOT=portage-20171006.tar.bz2
REPO=https://repo.jmanson.fr
NJOBS=$(grep '^processor' /proc/cpuinfo | sort -u | wc -l)
MAKEOPTS="-j$((NJOBS+1)) -l${NJOBS}"
EMERGE_DEFAULT_OPTS="--jobs=${NJOBS} --load-average=${NJOBS}"