1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
7 D.4. /etc/rc.d/init.d/consolelog
9 <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
10 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
11 <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
12 "text/css" media="print" />
14 <body class="lfs" id="lfs-6.8">
15 <div class="navheader">
17 Linux From Scratch - Version 6.8
20 付録 D. ブートスクリプトと sysconfig スクリプト version-20100627
24 <a accesskey="p" href="apds03.html" title=
25 "/etc/rc.d/init.d/mountkernfs">前のページ</a>
27 /etc/rc.d/init.d/mountkernfs
31 <a accesskey="n" href="apds05.html" title=
32 "/etc/rc.d/init.d/modules">次のページ</a>
34 /etc/rc.d/init.d/modules
38 <a accesskey="u" href="scripts.html" title=
39 "付録 D. ブートスクリプトと sysconfig スクリプト version-20100627">上に戻る</a>
42 <a accesskey="h" href="../index.html" title=
43 "Linux From Scratch - Version 6.8">ホーム</a>
47 <div class="wrap" lang="ja" xml:lang="ja">
49 <a id="consolelog" name="consolelog"></a>D.4.
50 /etc/rc.d/init.d/consolelog
54 # Begin $rc_base/init.d/consolelog
56 ########################################################################
58 # Description : Set the kernel log level for the console
60 # Authors : Dan Nicholson - dnicholson@linuxfromscratch.org
64 # Notes : /proc must be mounted before this can run
66 ########################################################################
71 # set the default loglevel
73 if [ -r /etc/sysconfig/console ]; then
74 . /etc/sysconfig/console
81 boot_mesg "Setting the console log level to ${LOGLEVEL}..."
86 boot_mesg "Console log level '${LOGLEVEL}' is invalid" ${FAILURE}
92 # Read the current value if possible
93 if [ -r /proc/sys/kernel/printk ]; then
94 read level line < /proc/sys/kernel/printk
96 boot_mesg "Can't read the current console log level" ${FAILURE}
101 if [ -n "$level" ]; then
102 ${ECHO} -e "${INFO}The current console log level" \
103 "is ${level}${NORMAL}"
108 echo "Usage: ${0} {start|status}"
113 # End $rc_base/init.d/consolelog
116 <div class="navfooter">
119 <a accesskey="p" href="apds03.html" title=
120 "/etc/rc.d/init.d/mountkernfs">前のページ</a>
122 /etc/rc.d/init.d/mountkernfs
126 <a accesskey="n" href="apds05.html" title=
127 "/etc/rc.d/init.d/modules">次のページ</a>
129 /etc/rc.d/init.d/modules
133 <a accesskey="u" href="scripts.html" title=
134 "付録 D. ブートスクリプトと sysconfig スクリプト version-20100627">上に戻る</a>
137 <a accesskey="h" href="../index.html" title=
138 "Linux From Scratch - Version 6.8">ホーム</a>