buildroot: weekly update 2023-04-26
1. cv180x support ssh and autologin
This commit is contained in:
40
buildroot-2021.05/board/cvitek/CV180X/overlay/etc/inittab
Normal file
40
buildroot-2021.05/board/cvitek/CV180X/overlay/etc/inittab
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# /etc/inittab
|
||||||
|
#
|
||||||
|
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
|
||||||
|
#
|
||||||
|
# Note: BusyBox init doesn't support runlevels. The runlevels field is
|
||||||
|
# completely ignored by BusyBox init. If you want runlevels, use
|
||||||
|
# sysvinit.
|
||||||
|
#
|
||||||
|
# Format for each entry: <id>:<runlevels>:<action>:<process>
|
||||||
|
#
|
||||||
|
# id == tty to run on, or empty for /dev/console
|
||||||
|
# runlevels == ignored
|
||||||
|
# action == one of sysinit, respawn, askfirst, wait, and once
|
||||||
|
# process == program to run
|
||||||
|
|
||||||
|
# Startup the system
|
||||||
|
::sysinit:/bin/mount -t proc proc /proc
|
||||||
|
::sysinit:/bin/mount -o remount,rw /
|
||||||
|
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
|
||||||
|
::sysinit:/bin/mount -a
|
||||||
|
::sysinit:/sbin/swapon -a
|
||||||
|
null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
|
||||||
|
null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
|
||||||
|
null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
|
||||||
|
null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
|
||||||
|
::sysinit:/bin/hostname -F /etc/hostname
|
||||||
|
# now run any rc scripts
|
||||||
|
::sysinit:/etc/init.d/rcS
|
||||||
|
|
||||||
|
# Put a getty on the serial port
|
||||||
|
# console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
|
||||||
|
console::respawn:/sbin/getty -L console 115200 vt100 -n -l /usr/local/bin/autologin
|
||||||
|
|
||||||
|
# Stuff to do for the 3-finger salute
|
||||||
|
#::ctrlaltdel:/sbin/reboot
|
||||||
|
|
||||||
|
# Stuff to do before rebooting
|
||||||
|
::shutdown:/etc/init.d/rcK
|
||||||
|
::shutdown:/sbin/swapoff -a
|
||||||
|
::shutdown:/bin/umount -a -r
|
||||||
@ -1,14 +1,15 @@
|
|||||||
export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
|
export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
|
||||||
export LD_LIBRARY_PATH="/mnt/system/lib"
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/mnt/system/usr/bin:/mnt/system/usr/sbin:/mnt/data/bin:/mnt/data/sbin"
|
||||||
|
|
||||||
if [ "$PS1" ]; then
|
if [ "$PS1" ]; then
|
||||||
if [ "`id -u`" -eq 0 ]; then
|
if [ "`id -u`" -eq 0 ]; then
|
||||||
export PS1='\u@\h# '
|
export PS1='# '
|
||||||
else
|
else
|
||||||
export PS1='\u@\h$ '
|
export PS1='$ '
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PAGER='/bin/more '
|
||||||
export EDITOR='/bin/vi'
|
export EDITOR='/bin/vi'
|
||||||
|
|
||||||
# Source configuration files from /etc/profile.d
|
# Source configuration files from /etc/profile.d
|
||||||
@ -16,5 +17,21 @@ for i in /etc/profile.d/*.sh ; do
|
|||||||
if [ -r "$i" ]; then
|
if [ -r "$i" ]; then
|
||||||
. $i
|
. $i
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
unset i
|
unset i
|
||||||
|
done
|
||||||
|
|
||||||
|
export HOSTNAME="$(hostname)"
|
||||||
|
export OLDPWD=/root
|
||||||
|
|
||||||
|
if [ '$USER' == 'root' ]; then
|
||||||
|
export PS1='[\u@\h]\w\# '
|
||||||
|
else
|
||||||
|
export PS1='[\u@\h]\w\$ '
|
||||||
|
fi
|
||||||
|
|
||||||
|
alias ll='ls -alF'
|
||||||
|
alias la='ls -A'
|
||||||
|
alias l='ls -CF'
|
||||||
|
|
||||||
|
export TERM=vt100
|
||||||
|
export TERMINFO=/usr/share/terminfo
|
||||||
|
|||||||
2
buildroot-2021.05/board/cvitek/CV180X/overlay/usr/local/bin/autologin
Executable file
2
buildroot-2021.05/board/cvitek/CV180X/overlay/usr/local/bin/autologin
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
exec /bin/login -f root
|
||||||
@ -223,7 +223,7 @@ BR2_ROOTFS_DEVICE_TABLE="system/device_table.txt"
|
|||||||
# BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES is not set
|
# BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES is not set
|
||||||
# BR2_ROOTFS_MERGED_USR is not set
|
# BR2_ROOTFS_MERGED_USR is not set
|
||||||
BR2_TARGET_ENABLE_ROOT_LOGIN=y
|
BR2_TARGET_ENABLE_ROOT_LOGIN=y
|
||||||
BR2_TARGET_GENERIC_ROOT_PASSWD=""
|
BR2_TARGET_GENERIC_ROOT_PASSWD="cvitek"
|
||||||
BR2_SYSTEM_BIN_SH_BUSYBOX=y
|
BR2_SYSTEM_BIN_SH_BUSYBOX=y
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -466,3 +466,17 @@ BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES=0
|
|||||||
BR2_TARGET_ROOTFS_EXT2_EXTRA_BLOCKS=0
|
BR2_TARGET_ROOTFS_EXT2_EXTRA_BLOCKS=0
|
||||||
|
|
||||||
BR2_PACKAGE_STRACE=y
|
BR2_PACKAGE_STRACE=y
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 3.2, dynamic library, wchar, threads
|
||||||
|
#
|
||||||
|
|
||||||
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
|
BR2_PACKAGE_DROPBEAR_CLIENT=y
|
||||||
|
# # BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS is not set
|
||||||
|
BR2_PACKAGE_DROPBEAR_SMALL=y
|
||||||
|
# # BR2_PACKAGE_DROPBEAR_WTMP is not set
|
||||||
|
# # BR2_PACKAGE_DROPBEAR_LASTLOG is not set
|
||||||
|
# # BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO is not set
|
||||||
|
# BR2_PACKAGE_DROPBEAR_LOCALOPTIONS_FILE=""
|
||||||
|
|||||||
Reference in New Issue
Block a user