mirror of https://github.com/fspc/gbootroot.git
freesource
22 years ago
2 changed files with 143 additions and 0 deletions
@ -0,0 +1,87 @@ |
|||
# $Id: inittab.example.agetty-slack,v 1.1 2001/12/03 20:42:03 freesource Exp $ |
|||
# Used by Example.yard |
|||
# |
|||
# inittab This file describes how the INIT process should set up |
|||
# the system in a certain run-level. |
|||
# |
|||
# Version: @(#)inittab 2.04 17/05/93 MvS |
|||
# 2.10 02/10/95 PV |
|||
# 3.00 02/06/1999 PV |
|||
# |
|||
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org> |
|||
# Modified by: Patrick J. Volkerding, <volkerdi@ftp.cdrom.com> |
|||
# |
|||
|
|||
# These are the default runlevels in Slackware: |
|||
# 0 = halt |
|||
# 1 = single user mode |
|||
# 2 = unused (but configured the same as runlevel 3) |
|||
# 3 = multiuser mode (default Slackware runlevel) |
|||
# 4 = X11 with KDM/GDM/XDM (session managers) |
|||
# 5 = unused (but configured the same as runlevel 3) |
|||
# 6 = reboot |
|||
|
|||
# Default runlevel. (Do not set to 0 or 6) |
|||
id:3:initdefault: |
|||
|
|||
# System initialization (runs when system boots). |
|||
si:S:sysinit:/etc/init.d/rcS |
|||
|
|||
# Script to run when going single user (runlevel 1). |
|||
su:1S:wait:/sbin/sulogin |
|||
|
|||
# Script to run when going multi user. |
|||
rc:2345:wait:/etc/init.d/rc |
|||
|
|||
# What to do at the "Three Finger Salute". |
|||
ca::ctrlaltdel:/sbin/shutdown -t5 -rf now |
|||
|
|||
# Runlevel 0 halts the system. |
|||
l0:0:wait:/etc/init.d/halt |
|||
|
|||
# Runlevel 6 reboots the system. |
|||
l6:6:wait:/etc/init.d/reboot |
|||
|
|||
# What to do when power fails (shutdown to single user). |
|||
pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING" |
|||
|
|||
# If power is back before shutdown, cancel the running shutdown. |
|||
pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK" |
|||
|
|||
# If power comes back in single user mode, return to multi user mode. |
|||
ps:S:powerokwait:/sbin/init 3 |
|||
|
|||
# The getties in multi user mode on consoles an serial lines. |
|||
# |
|||
# NOTE NOTE NOTE adjust this to your getty or you will not be |
|||
# able to login !! |
|||
# |
|||
# Note: for 'agetty' you use linespeed, line. |
|||
# for 'getty_ps' you use line, linespeed and also use 'gettydefs' |
|||
c1:1235:respawn:/sbin/agetty 38400 ttys/0 linux |
|||
##c2:1235:respawn:/sbin/agetty 38400 ttys/1 linux |
|||
##c3:1235:respawn:/sbin/agetty 38400 ttys/2 linux |
|||
#c4:1235:respawn:/sbin/agetty 38400 tty4 linux |
|||
#c5:1235:respawn:/sbin/agetty 38400 tty5 linux |
|||
#c6:12345:respawn:/sbin/agetty 38400 tty6 linux |
|||
|
|||
# Serial lines |
|||
#s1:12345:respawn:/sbin/agetty 19200 ttyS0 vt100 |
|||
#s2:12345:respawn:/sbin/agetty 19200 ttyS1 vt100 |
|||
|
|||
# Dialup lines |
|||
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100 |
|||
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100 |
|||
|
|||
# Runlevel 4 used to be for an X window only system, until we discovered |
|||
# that it throws init into a loop that keeps your load avg at least 1 all |
|||
# the time. Thus, there is now one getty opened on tty6. Hopefully no one |
|||
# will notice. ;^) |
|||
# It might not be bad to have one text console anyway, in case something |
|||
# happens to X. |
|||
# x1:4:wait:/etc/rc.d/rc.4 |
|||
|
|||
# End of /etc/inittab |
|||
|
|||
|
|||
|
@ -0,0 +1,56 @@ |
|||
# $Id: inittab.example.mingetty-rpm,v 1.2 2001/12/03 20:11:03 freesource Exp $ |
|||
# Used by Example.yard |
|||
# |
|||
# inittab This file describes how the INIT process should set up |
|||
# the system in a certain run-level. |
|||
# |
|||
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org> |
|||
# Modified for RHS Linux by Marc Ewing and Donnie Barnes |
|||
# |
|||
|
|||
# Default runlevel. The runlevels used by RHS are: |
|||
# 0 - halt (Do NOT set initdefault to this) |
|||
# 1 - Single user mode |
|||
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking) |
|||
# 3 - Full multiuser mode |
|||
# 4 - unused |
|||
# 5 - X11 |
|||
# 6 - reboot (Do NOT set initdefault to this) |
|||
# |
|||
id:3:initdefault: |
|||
|
|||
# System initialization. |
|||
si::sysinit:/etc/init.d/rcS |
|||
|
|||
l0:0:wait:/etc/init.d/halt 0 |
|||
l1:1:wait:/etc/init.d/rc 1 |
|||
l2:2:wait:/etc/init.d/rc 2 |
|||
l3:3:wait:/etc/init.d/rc 3 |
|||
l4:4:wait:/etc/init.d/rc 4 |
|||
l5:5:wait:/etc/init.d/rc 5 |
|||
l6:6:wait:/etc/init.d/reboot 6 |
|||
|
|||
# Things to run in every runlevel. |
|||
# ud::once:/sbin/update |
|||
|
|||
# Trap CTRL-ALT-DELETE |
|||
ca::ctrlaltdel:/sbin/shutdown -t3 -r now |
|||
|
|||
# When our UPS tells us power has failed, assume we have a few minutes |
|||
# of power left. Schedule a shutdown for 2 minutes from now. |
|||
# This does, of course, assume you have powerd installed and your |
|||
# UPS connected and working correctly. |
|||
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down" |
|||
|
|||
# If power was restored before the shutdown kicked in, cancel it. |
|||
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled" |
|||
|
|||
# Run gettys in standard runlevels |
|||
|
|||
# Run xdm in runlevel 5 |
|||
# xdm is now a separate service |
|||
# x:5:respawn:/etc/X11/prefdm -nodaemon |
|||
0:2345:respawn:/sbin/mingetty ttys/0 |
|||
##1:2345:respawn:/sbin/mingetty ttys/1 |
|||
##2:2345:respawn:/sbin/mingetty ttys/2 |
|||
#c:2345:respawn:/sbin/mingetty serial/0 |
Loading…
Reference in new issue