Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] BZR Change 15 to cauldron-devel cauldron by David Kowis <dkowis@shlrm.org>

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: bzr AT mail.sourcemage.org
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] BZR Change 15 to cauldron-devel cauldron by David Kowis <dkowis AT shlrm.org>
  • Date: Sat, 15 Apr 2006 12:45:35 -0500

------------------------------------------------------------
revno: 15
committer: David Kowis <dkowis AT shlrm.org>
branch nick: devel
timestamp: Mon 2006-04-03 09:24:40 -0500
message:
Added stuff to auto detect and add serial port consoles.
http://bugs.sourcemage.org/show_bug.cgi?id=10548

=== added directory 'iso/skeleton/etc/init.d/runlevels/%3'
=== added file 'iso/skeleton/etc/init.d/runlevels/%3/serialconsole'
--- /dev/null
+++ iso/skeleton/etc/init.d/runlevels/%3/serialconsole
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+PROGRAM=/bin/false
+RUNLEVEL=3
+NEEDS=remote_fs
+
+. /etc/init.d/smgl_init
+. /etc/sysconfig/init
+
+start()
+{
+ required_executable /usr/bin/grep
+ required_executable /bin/dmesg
+
+ for serial in $( /bin/dmesg /usr/bin/grep -o -e "ttyS[0-9]" ) ; do
+ if (( `/usr/bin/grep -c $serial /etc/inittab` == 0 )) ; then
+ #TODO: add the appropriate serial console line to
/etc/inittab
+ $serial:linux:/sbin/agetty -L /dev/$serial
38400,19200,9600 vt100
+ fi
+ done
+
+ #restart init to make it know about the changes
+ kill -1 1
+}
+
+stop()
+{
+ exit 0
+}
+
+restart() { exit 3; }
+reload() { exit 3; }
+force_reload() { exit 3; }
+status() { exit 3; }
+
+usage()
+{
+ echo "Usage: $0 {start|stop}"
+ echo "Warning: Do not run this script manually!"
+}




  • [SM-Commit] BZR Change 15 to cauldron-devel cauldron by David Kowis <dkowis AT shlrm.org>, bzr, 04/15/2006

Archive powered by MHonArc 2.6.24.

Top of Page