##// END OF EJS Templates
Refactor...
Refactor Use RPI_MODEL and SET_ARCH to define all board relevant settings, crosscompilers, architectures etc... - SET_ARCH=32 is default and used for all boards in 32bit mode - SET_ARCH=64 and RPI_MODEL=3 or 3P activate 64bit mode! - no need to set CROSS_COMPILE, KERNEL_IMAGE, RELEASE_ARCH, KERNEL_DEFCONFIG, KERNEL_ARCH, QEMU_BINARY - build kernel is now a default. i kicked out old kernel v3 and jessie support! they're too old. set buster as default - autodetect if program is running on 3142 => assume it is apt-cacher-ng and set APT_PROXY - next pull includes sakaki kernel for RPI3 and RPi3B+ => see https://github.com/sakaki-/bcmrpi3-kernel-bis

Fichier de la dernière révision:

r338:5dd9ea36ae5f
r375:a90f6ad1a83f
Show More
30-security.sh
29 lines | 823 B | application/x-sh | BashLexer
#
# Setup users and security settings
#
# Load utility functions
. ./functions.sh
# Generate crypt(3) password string
ENCRYPTED_PASSWORD=$(mkpasswd -m sha-512 "${PASSWORD}")
ENCRYPTED_USER_PASSWORD=$(mkpasswd -m sha-512 "${USER_PASSWORD}")
# Setup default user
if [ "$ENABLE_USER" = true ] ; then
chroot_exec adduser --gecos $USER_NAME --add_extra_groups --disabled-password $USER_NAME
chroot_exec usermod -a -G sudo -p "${ENCRYPTED_USER_PASSWORD}" $USER_NAME
fi
# Setup root password or not
if [ "$ENABLE_ROOT" = true ] ; then
chroot_exec usermod -p "${ENCRYPTED_PASSWORD}" root
else
# Set no root password to disable root login
chroot_exec usermod -p \'!\' root
fi
# Enable serial console systemd style
if [ "$ENABLE_CONSOLE" = true ] ; then
chroot_exec systemctl enable serial-getty\@ttyAMA0.service
fi