URI:
       tinstall-chroot.sh.in - uwu - hardware bitcoin wallet software and build system
  HTML git clone https://git.parazyd.org/uwu
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       tinstall-chroot.sh.in (1040B)
       ---
            1 #!/bin/sh
            2 # Copyright (c) 2020 Ivan J. <parazyd@dyne.org>
            3 # This file is part of uwu.
            4 # See LICENSE file for copyright and license details.
            5 set -e
            6 
            7 cat <<EOF > /etc/apk/repositories
            8 https://nl.alpinelinux.org/alpine/edge/main
            9 https://nl.alpinelinux.org/alpine/edge/community
           10 https://nl.alpinelinux.org/alpine/edge/testing
           11 EOF
           12 
           13 echo "nameserver 8.8.8.8" > /etc/resolv.conf
           14 
           15 apk update
           16 apk upgrade
           17 apk add rng-tools electrum openrc alpine-base
           18 
           19 rm -f /etc/resolv.conf
           20 
           21 echo "uwu" > /etc/hostname
           22 echo "127.0.0.1 localhost uwu" > /etc/hosts
           23 
           24 adduser -D -s /bin/ash uwu
           25 echo "@USERCREDENTIALS@" | chpasswd
           26 echo "@ROOTCREDENTIALS@" | chpasswd
           27 
           28 sed -e 's/#rc_parallel="NO"/rc_parallel="YES"/' -i /etc/rc.conf
           29 
           30 cat <<EOF >> /etc/inittab
           31 ttyGS0::respawn:/sbin/getty -L ttyGS0 115200 vt100
           32 EOF
           33 
           34 echo "ttyGS0" >> /etc/securetty
           35 
           36 boot_initscripts="rngd syslog urandom klogd hostname"
           37 for i in $boot_initscripts; do
           38         rc-update add $i boot
           39 done
           40 
           41 #default_initscripts="electrum-daemon"
           42 #for i in $default_initscripts; do
           43 #        rc-update add $i default
           44 #done