aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-02-25 17:11:22 +0000
committerBill Nottingham <notting@redhat.com>1999-02-25 17:11:22 +0000
commitbf72ce488a9d43c9752f926e4bc3f55f8d67a141 (patch)
treec7e9cdb21075ec273d10b080746f5ef01de252e7
parent0953f29c6fb338868a9ed616b92ca39af80a0d0e (diff)
downloadinitscripts-bf72ce488a9d43c9752f926e4bc3f55f8d67a141.tar
initscripts-bf72ce488a9d43c9752f926e4bc3f55f8d67a141.tar.gz
initscripts-bf72ce488a9d43c9752f926e4bc3f55f8d67a141.tar.bz2
initscripts-bf72ce488a9d43c9752f926e4bc3f55f8d67a141.tar.xz
initscripts-bf72ce488a9d43c9752f926e4bc3f55f8d67a141.zip
more changes for sysconfig/init
-rw-r--r--ChangeLog20
-rw-r--r--sysconfig.txt25
-rw-r--r--sysconfig/init15
3 files changed, 54 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index e63341d7..08b38a94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+1999-02-25 Bill Nottingham <notting@redhat.com>
+
+ * rc.d/rc.sysinit: put preferred support back in
+
+1999-02-23 Bill Nottingham <notting@redhat.com>
+
+ * rc.d/rc.sysinit: fix 'force fsck on boot'
+
+1999-02-22 Bill Nottingham <notting@redhat.com>
+
+ * Makefile, initscripts.spec, rc.d/init.d/functions, sysconfig/init:
+ add default /etc/sysconfig/init
+ change raw ansi to echo -e
+ add a 'serial' mode that has no ansi escapes
+
+1999-02-19 Bill Nottingham <notting@redhat.com>
+
+ * rc.d/init.d/functions:
+ $@ -> $*. I knew there was a reason I did that.
+
1999-02-18 Bill Nottingham <notting@redhat.com>
* rc.d/init.d/single: fie, a missing fi. Also, source functions.
diff --git a/sysconfig.txt b/sysconfig.txt
index f5c79adb..88fd16a9 100644
--- a/sysconfig.txt
+++ b/sysconfig.txt
@@ -21,13 +21,34 @@ Files in /etc/sysconfig
/etc/sysconfig/init:
BOOTUP=<some bootup mode>
- BOOTUP=color means new (as of RH6.0) boot display. Anything
- else means old-style display
+ BOOTUP=color means new (as of RH6.0) boot display.
+ BOOTUP=serial means new display, but without ANSI-formatting
+ Anything else means old-style display
LOGLEVEL=<a number>
Sets the initial console logging level for the kernel.
The default is 7. 8 means everything (including debugging);
1 means nothing except kernel panics. syslogd will override
this once it starts.
+ RES_COL=<a number>
+ Column of the screen to start status labels at. Defaults to 60
+ MOVE_TO_COL=<a command>
+ A command to move the cursor to $RES_COL. Defaults to nasty
+ ANSI sequences output by echo -e.
+ SETCOLOR_SUCCESS=<a command>
+ A command to set the color to a color indicating success.
+ Defaults to nasty ANSI sequences output by echo -e setting
+ the color to green.
+ SETCOLOR_FAILURE=<a command>
+ A command to set the color to a color indicating failure.
+ Defaults to nasty ANSI sequences output by echo -e setting
+ the color to red.
+ SETCOLOR_WARNING=<a command>
+ A command to set the color to a color indicating warning.
+ Defaults to nasty ANSI sequences output by echo -e setting
+ the color to yellow.
+ SETCOLOR_NORMAL=<a command>
+ A command to set the color to 'normal'. Defaults to nasty
+ ANSI sequences output by echo -e.
/etc/sysconfig/keyboard:
diff --git a/sysconfig/init b/sysconfig/init
index 3b49ec82..4b0f326e 100644
--- a/sysconfig/init
+++ b/sysconfig/init
@@ -2,11 +2,18 @@
# verbose => old-style bootup
# anything else => new style bootup without ANSI colors or positioning
BOOTUP=color
-# color for 'OK' label ; 2=green
-COLOR_SUCCESS=2
-# color for 'FAILED' label ; 1=red
-COLOR_FAILURE=1
# column to start "[ OK ]" label in
RES_COL=60
+# terminal sequence to move to that column. You could change this
+# to something like "tput hpa ${RES_COL}" if your terminal supports it
+MOVE_TO_COL="echo -en \"\\033[300C\\033[$[${COLUMNS}-${RES_COL}]D\""
+# terminal sequence to set color to a 'success' color (currently: green)
+SETCOLOR_SUCCESS="echo -en \"\\033[1;32m\""
+# terminal sequence to set color to a 'failure' color (currently: red)
+SETCOLOR_FAILURE="echo -en \"\\033[1;31m\""
+# terminal sequence to set color to a 'warning' color (currently: yellow)
+SETCOLOR_WARNING="echo -en \"\\033[1;33m\""
+# terminal sequence to reset to the default color.
+SETCOLOR_NORMAL="echo -en \"\\033[0;39m\""
# default kernel loglevel on boot (syslog will reset this)
LOGLEVEL=1