##// 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
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 #
# Setup users and security settings
#
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Load utility functions
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 . ./functions.sh
# Generate crypt(3) password string
Unknown
fixes...
r338 ENCRYPTED_PASSWORD=$(mkpasswd -m sha-512 "${PASSWORD}")
ENCRYPTED_USER_PASSWORD=$(mkpasswd -m sha-512 "${USER_PASSWORD}")
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
Jan Wagner
comment-cleanup, net-cleanup, size-calc-fix, split-more, menuconfig
r71 # Setup default user
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 if [ "$ENABLE_USER" = true ] ; then
drtyhlpr
Added: SSH public key auth, other fixes
r120 chroot_exec adduser --gecos $USER_NAME --add_extra_groups --disabled-password $USER_NAME
Denis Mosolov
Add USER_PASSWORD=raspberry option
r112 chroot_exec usermod -a -G sudo -p "${ENCRYPTED_USER_PASSWORD}" $USER_NAME
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 fi
Jan Wagner
comment-cleanup, net-cleanup, size-calc-fix, split-more, menuconfig
r71 # Setup root password or not
Jan Wagner
Added: KERNEL_SRCDIR, path-checks, code-cleanup
r72 if [ "$ENABLE_ROOT" = true ] ; then
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 chroot_exec usermod -p "${ENCRYPTED_PASSWORD}" root
else
Jan Wagner
code cleanup and even more spliting
r70 # Set no root password to disable root login
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 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