CHips L MINI SHELL

CHips L pro

Current Path : /etc/init.removed/
Upload File :
Current File : //etc/init.removed/serial.conf

# Automatically start a configured serial console
#
# How this works:
#
# On boot, a udev helper examines /dev/console. If a serial console is the
# primary console (last console on the commandline in grub),  the event
# 'fedora.serial-console-available <port name> <speed>' is emitted, which
# triggers this script. It waits for the runlevel to finish, ensures
# the proper port is in /etc/securetty, and starts the getty.
#
# If your serial console is not the primary console, or you want a getty
# on serial even if it's not the console, create your own event e.g. 
# /etc/init/ttyS0.conf with content:
# # ttyS0 - agetty
# #
# # This service maintains a agetty on ttyS0.
#
# stop on runlevel [S016]
# start on runlevel [23]
#
# respawn
# exec agetty -h -L -w /dev/ttyS0 115200 vt102
#
# Do not edit this file directly. If you want to change the behaviour,
# please create a file serial.override and put your changes there.

start on fedora.serial-console-available DEV=* and stopped rc RUNLEVEL=[2345]
stop on runlevel [S016]

instance $DEV
respawn
pre-start exec /sbin/securetty $DEV
exec /sbin/agetty /dev/$DEV $SPEED vt100-nav
post-stop exec /sbin/initctl emit --no-wait fedora.serial-console-available DEV=$DEV SPEED=$SPEED
usage 'DEV=ttySX SPEED=Y  - where X is console id and Y is baud rate'

Copyright 2K16 - 2K18 Indonesian Hacker Rulez