Browse Source

add gein-extras (ie rice)

master
jcmdln 2 years ago
parent
commit
b39aec7a86
2 changed files with 18 additions and 10 deletions
  1. 9
    4
      gein
  2. 9
    6
      usr/local/sbin/gein-extras

+ 9
- 4
gein View File

@@ -13,10 +13,11 @@ Time_Zone="America/New_York"
Video_Cards="intel"

## Gentoo Defaults
#Kernel_Config=""
#Make_Conf="https://raw.githubusercontent.com/jcmdln/gein/master/etc/portage/make.conf"
#Package_Env="https://raw.githubusercontent.com/jcmdln/gein/master/etc/portage/package.env"
#Package_Use="https://raw.githubusercontent.com/jcmdln/gein/master/etc/portage/package.use"
#Base_Url="https://raw.githubusercontent.com/jcmdln/gein/master"
#Kernel_Config="$Base_Url/usr/src/linux/4.12-config"
#Make_Conf="$Base_Url/etc/portage/make.conf"
#Package_Env="$Base_Url/etc/portage/package.env"
#Package_Use="$Base_Url/etc/portage/package.use"
Stage3_Arch="amd64"
Stage3_Date="20171005"
Stage3_Url="http://distfiles.gentoo.org/releases"
@@ -72,6 +73,10 @@ Bootstrap() {
/mnt/gentoo/etc/portage/repos.conf/gentoo.conf && \
cp -vL /etc/resolv.conf /mnt/gentoo/etc/

## Add 'gein-extras' script
mkdir -vp /mnt/gentoo/usr/local/sbin && \
wget $Base_URL/usr/local/sbin/gein-extras -O /usr/local/sbin/gein-extras

## Chroot into '/mnt/gentoo'
cd /mnt/gentoo && \
echo "chroot'ing into /mnt/gentoo..."

+ 9
- 6
usr/local/sbin/gein-extras View File

@@ -7,10 +7,13 @@
read -ep "Install gein-extras? [Yes/No]: " Install && \
if $Install | grep -iq "^n"; then exit; fi


Wget="wget -q"
Base_URL="https://raw.githubusercontent.com/jcmdln/gein/master"
wget $Base_URL/etc/emacs/default.el -O /etc/emacs/default.el
wget $Base_URL/etc/profile -O /etc/sudoers
wget $Base_URL/etc/profile.d/alias -O /etc/profile.d/alias
wget $Base_URL/etc/sudoers -O /etc/sudoers
wget $Base_URL/etc/tmux.conf -O /etc/tmux.conf
wget $Base_URL/etc/vimrc -O /etc/vimrc

$Wget $Base_URL/etc/emacs/default.el -O /etc/emacs/default.el
$Wget $Base_URL/etc/profile -O /etc/sudoers
$Wget $Base_URL/etc/profile.d/alias.sh -O /etc/profile.d/alias
$Wget $Base_URL/etc/sudoers -O /etc/sudoers
$Wget $Base_URL/etc/tmux.conf -O /etc/tmux.conf
$Wget $Base_URL/etc/vimrc -O /etc/vimrc

Loading…
Cancel
Save