From 4c9f7dce50f61916653465e9f1901b3052825b44 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 29 Aug 2013 21:39:45 +0200 Subject: [PATCH] initrd.scripts: move quiet_kmsg and verbose_kmsg to 00-common.sh --- defaults/initrd.d/00-common.sh | 12 +++++++++++- defaults/initrd.scripts | 10 ---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/defaults/initrd.d/00-common.sh b/defaults/initrd.d/00-common.sh index bb50fd1..fb1adfd 100755 --- a/defaults/initrd.d/00-common.sh +++ b/defaults/initrd.d/00-common.sh @@ -39,4 +39,14 @@ bad_msg() { splashcmd verbose echo -e "${BAD}!!${NORMAL}${BOLD} ${msg_string} ${NORMAL}" fi -} \ No newline at end of file +} + +quiet_kmsg() { + # if QUIET is set make the kernel less chatty + [ -n "$QUIET" ] && echo '0' > /proc/sys/kernel/printk +} + +verbose_kmsg() { + # if QUIET is set make the kernel less chatty + [ -n "$QUIET" ] && echo '6' > /proc/sys/kernel/printk +} diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index ffd2028..a2f31d3 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -890,16 +890,6 @@ sdelay() { fi } -quiet_kmsg() { - # if QUIET is set make the kernel less chatty - [ -n "$QUIET" ] && echo '0' > /proc/sys/kernel/printk -} - -verbose_kmsg() { - # if QUIET is set make the kernel less chatty - [ -n "$QUIET" ] && echo '6' > /proc/sys/kernel/printk -} - cdupdate() { if is_livecd then