Skip to content

Commit

Permalink
busybox: add nopkmute option to init
Browse files Browse the repository at this point in the history
This gives you the option of not having kernel messages hidden.
  • Loading branch information
cdu13a committed Jul 17, 2020
1 parent c529a67 commit 581f14f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/sysutils/busybox/scripts/init
Original file line number Diff line number Diff line change
Expand Up @@ -1079,9 +1079,6 @@ delete_descriptors() {

# Do init tasks to bring up system

# hide kernel log messages on console
echo '1 4 1 7' > /proc/sys/kernel/printk

# set ondemand up_threshold
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
Expand Down Expand Up @@ -1159,6 +1156,9 @@ for arg in $(cat /proc/cmdline); do
debugging)
DEBUG=yes
;;
nopkmute)
MUTE_PRINTK=no
;;
progress)
PROGRESS=yes
INIT_ARGS="$INIT_ARGS --show-status=1"
Expand Down Expand Up @@ -1205,6 +1205,11 @@ for arg in $(cat /proc/cmdline); do
esac
done

# hide kernel log messages on console
if [ ! "$MUTE_PRINTK" = "no" ]; then
echo '1 4 1 7' > /proc/sys/kernel/printk
fi

if test "$DEBUG" = "yes"; then
exec 3>&1
else
Expand Down

0 comments on commit 581f14f

Please sign in to comment.