Skimmed busybox
This commit is contained in:
parent
854db4f6a3
commit
e377ff799b
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,14 @@
|
|||
diff -Naur busybox-1.31.1.orig/loginutils/login.c busybox-1.31.1/loginutils/login.c
|
||||
--- busybox-1.31.1.orig/loginutils/login.c 2019-06-10 12:50:53.000000000 +0200
|
||||
+++ busybox-1.31.1/loginutils/login.c 2020-07-29 09:13:34.428911641 +0200
|
||||
@@ -570,8 +570,8 @@
|
||||
if (access(".hushlogin", F_OK) != 0)
|
||||
motd();
|
||||
|
||||
- if (pw->pw_uid == 0)
|
||||
- syslog(LOG_INFO, "root login%s", fromhost);
|
||||
+ // if (pw->pw_uid == 0)
|
||||
+ // syslog(LOG_INFO, "root login%s", fromhost);
|
||||
|
||||
if (ENABLE_FEATURE_CLEAN_UP)
|
||||
free(fromhost);
|
|
@ -0,0 +1,48 @@
|
|||
--- a/arch/arm/boot/dts/sun8i-v3s-funkey.dts
|
||||
+++ b/arch/arm/boot/dts/sun8i-v3s-funkey.dts
|
||||
@@ -108,6 +108,45 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&pio {
|
||||
+ gpio-line-names =
|
||||
+ /* PA0-PA31 */
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ /* PB0-PA31 */
|
||||
+ "", "TE", "LCDR", "KEY", "LEDA", "PMU", "SCL", "SDA",
|
||||
+ "TX", "RX", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ /* PC0-PA31 */
|
||||
+ "RS", "CLK", "CS", "MOSI", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "","",
|
||||
+ "", "", "", "", "", "", "","",
|
||||
+ "", "", "", "", "", "", "","",
|
||||
+ /* PD0-PA31 */
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ /* PE0-PA31 */
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ /* PF0-PA31 */
|
||||
+ "D1", "D0", "CLK", "CMD", "D3", "D2", "PA", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ /* PG0-PA31 */
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "",
|
||||
+ "", "", "", "", "", "", "", "";
|
||||
+};
|
||||
+
|
||||
/*
|
||||
#include "axp209.dtsi"
|
||||
|
|
@ -3,5 +3,11 @@
|
|||
# Remove log daemon init scripts since they are loaded from inittab
|
||||
rm -f ${TARGET_DIR}/etc/init.d/S01syslogd ${TARGET_DIR}/etc/init.d/S02klogd
|
||||
|
||||
# Remove ssyctl daemon
|
||||
rm -f ${TARGET_DIR}/etc/init.d/S02sysctl
|
||||
|
||||
# Remove random daemon
|
||||
rm -f ${TARGET_DIR}/etc/init.d/S20urandom
|
||||
|
||||
# Remove telnet daemon as we don't have network
|
||||
rm -f ${TARGET_DIR}/etc/init.d/S50telnet
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "ERROR Wrong number of arguments $#"
|
||||
exit 1
|
||||
fi
|
||||
pin=$(gpiofind "${1}")
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR Unknown GPIO ${1}"
|
||||
exit 1
|
||||
fi
|
||||
case ${2} in
|
||||
0) value=${2};;
|
||||
1) value=${2};;
|
||||
*) echo "ERROR Bad value ${2}"; exit 1;;
|
||||
esac
|
||||
gpioset ${pin}=${value}
|
||||
echo "OK"
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Load I2C modules
|
||||
modprobe i2c-dev
|
||||
modprobe i2c-mv64xxx
|
||||
|
||||
# Look for PCF6416 GPIO expander
|
||||
PCF6416=$(i2cdetect -y 0 20 20 | grep 20: | cut -d ':' -f 2)
|
||||
let PCF6416=PCF6416+0
|
||||
if [ ${PCF6416} -ne 20 ]; then
|
||||
echo "ERROR PCF6416"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Look for AXP209 PMIC
|
||||
AXP209=$(i2cdetect -y 0 34 34 | grep 30: | cut -d ':' -f 2)
|
||||
let AXP2090=AXP209+0
|
||||
if [ ${AXP209} -ne 34 ]; then
|
||||
echo "ERROR AXP209"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Unload I2C modules
|
||||
modprobe -r i2c_mv64xxx i2c_dev >/dev/null 2>&1
|
||||
echo "OK"
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 1 ];then
|
||||
echo "ERROR Wrong number of arguments $#"
|
||||
exit;
|
||||
fi
|
||||
case ${1} in
|
||||
0) value=0x0a;;
|
||||
1) value=0x3a;;
|
||||
*) echo "ERROR Bad argument ${1}"; exit 1;;
|
||||
esac
|
||||
|
||||
# Load I2C modules
|
||||
modprobe i2c-dev
|
||||
modprobe i2c-mv64xxx
|
||||
|
||||
# Turn on/off the LED
|
||||
i2cset -y 0 0x34 0x32 ${value}
|
||||
|
||||
# Unload I2C modules
|
||||
modprobe -r i2c_mv64xxx i2c_dev >/dev/null 2>&1
|
||||
echo "OK"
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Turn on Power Amplifier
|
||||
gpioset $(gpiofind "PA")=1
|
||||
|
||||
# Play 1kHz sine wave
|
||||
speaker-test -t sine -s 1 -f 1000 >/dev/null 2>&1
|
||||
|
||||
# Turn off Power Amplifier
|
||||
gpioset $(gpiofind "PA")=0
|
||||
|
||||
echo "OK"
|
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
THIS=$(basename $0)
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if /etc/rc.local; then
|
||||
echo "Starting rc.local: OK"
|
||||
exit 0
|
||||
else
|
||||
echo "Starting rc.local: ERROR"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
|
@ -1,47 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Assure that the kernel has module support.
|
||||
[ -e /proc/ksyms -o -e /proc/modules ] || exit 0
|
||||
|
||||
THIS=$(basename $0)
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
|
||||
# Exit if there's no modules file or there are no
|
||||
# valid entries
|
||||
if [ -r /etc/sysconfig/modules ]; then
|
||||
egrep -qv '^($|#)' /etc/sysconfig/modules
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Only try to load modules if the user has actually given us
|
||||
# some modules to load.
|
||||
while read MODULE ARGS; do
|
||||
|
||||
# Ignore comments and blank lines.
|
||||
case "$MODULE" in
|
||||
""|"#"*) continue ;;
|
||||
esac
|
||||
|
||||
# Attempt to load the module, making
|
||||
# sure to pass any arguments provided.
|
||||
modprobe ${MODULE} ${ARGS} >/dev/null
|
||||
|
||||
# Print the module name if successful,
|
||||
# otherwise take note.
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Loading module ${MODULE}: OK"
|
||||
else
|
||||
echo "Loading module ${MODULE}: ERROR"
|
||||
fi
|
||||
done < /etc/sysconfig/modules
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${0} {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
|
@ -161,8 +161,8 @@ case "$1" in
|
|||
EXITSTATUS=0
|
||||
TARGET_CARD="$2"
|
||||
case "$TARGET_CARD" in
|
||||
""|all) TARGET_CARD=all ; log_action_begin_msg "Starting ALSA" ;;
|
||||
*) log_action_begin_msg "Starting ALSA card ${TARGET_CARD}" ;;
|
||||
""|all) TARGET_CARD=all ;;
|
||||
*) ;;
|
||||
esac
|
||||
card_OK "$TARGET_CARD" || log_action_end_msg_and_exit "$( [ ! "$2" ] ; echo $? ; )" "none loaded"
|
||||
preinit_levels "$TARGET_CARD" || EXITSTATUS=1
|
||||
|
@ -170,19 +170,17 @@ case "$1" in
|
|||
sanify_levels "$TARGET_CARD" || EXITSTATUS=1
|
||||
restore_levels "$TARGET_CARD" >/dev/null 2>&1 || :
|
||||
fi
|
||||
log_action_end_msg_and_exit "$EXITSTATUS"
|
||||
;;
|
||||
stop)
|
||||
EXITSTATUS=0
|
||||
TARGET_CARD="$2"
|
||||
case "$TARGET_CARD" in
|
||||
""|all) TARGET_CARD=all ; log_action_begin_msg "Stopping ALSA" ;;
|
||||
*) log_action_begin_msg "Stopping ALSA card ${TARGET_CARD}" ;;
|
||||
""|all) TARGET_CARD=all ;;
|
||||
*) ;;
|
||||
esac
|
||||
card_OK "$TARGET_CARD" || log_action_end_msg_and_exit "$( [ ! "$2" ] ; echo $? ; )" "none loaded"
|
||||
store_levels "$TARGET_CARD" || EXITSTATUS=1
|
||||
#mute_and_zero_levels "$TARGET_CARD" || EXITSTATUS=1
|
||||
log_action_end_msg_and_exit "$EXITSTATUS"
|
||||
;;
|
||||
restart|force-reload)
|
||||
EXITSTATUS=0
|
||||
|
|
|
@ -1,12 +1,4 @@
|
|||
export PATH="/usr/local/games:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
if [ "$PS1" ]; then
|
||||
if [ "`id -u`" -eq 0 ]; then
|
||||
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\# '
|
||||
else
|
||||
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
fi
|
||||
fi
|
||||
export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
export PAGER='/bin/more'
|
||||
export EDITOR='/usr/bin/nano'
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
exit 0
|
|
@ -46,7 +46,6 @@ BR2_PACKAGE_AUMIX=y
|
|||
BR2_PACKAGE_LIBGPIOD=y
|
||||
BR2_PACKAGE_LIBGPIOD_TOOLS=y
|
||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||
BR2_PACKAGE_NANO=y
|
||||
BR2_TARGET_ROOTFS_CPIO_LZMA=y
|
||||
BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
|
||||
BR2_TARGET_ROOTFS_INITRAMFS=y
|
||||
|
|
Loading…
Reference in New Issue