Entirely disable 'crash detection'
It's sufficient for interested users to adjust 'verbosity=n' in armbianEnv.txt
This commit is contained in:
parent
4a579d8570
commit
cf5d54807b
@ -255,10 +255,6 @@ case $1 in
|
||||
# check whether auto detection override exists and if true use this for machine.id
|
||||
[ -f /root/.machine.id ] && cat /root/.machine.id >/var/run/machine.id
|
||||
log_hardware_info
|
||||
|
||||
# crash detection, enable verbose logging and disable it at clean shutdown
|
||||
[[ -f /boot/armbianEnv.txt ]] && sed -i "s/^verbosity=.*/verbosity=7/" /boot/armbianEnv.txt && sync &
|
||||
touch /boot/.verbose
|
||||
;;
|
||||
query)
|
||||
# armbianmonitor mode -- only interested in hardware info
|
||||
@ -267,11 +263,6 @@ case $1 in
|
||||
export HARDWARE ARCH KERNELID MACHINE BOARD_NAME VERSION
|
||||
;;
|
||||
*stop*)
|
||||
# set verbosity=1 only if set to 7 and /boot/.force-verbose doesn't exist.
|
||||
if [ ! -f /boot/.force-verbose ]; then
|
||||
[[ -f /boot/armbianEnv.txt ]] && sed -i "s/^verbosity=.*/verbosity=1/" /boot/armbianEnv.txt
|
||||
rm /boot/.verbose
|
||||
fi
|
||||
case ${LINUXFAMILY} in
|
||||
sun?i)
|
||||
# redefine green led to blink until shutdown, try to switch OTG port to host
|
||||
|
||||
Loading…
Reference in New Issue
Block a user