summaryrefslogtreecommitdiff
path: root/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-05-04 15:37:06 -0300
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-05-04 15:37:06 -0300
commit76206e3aceab1d4c0d7211c292b645904ae4ee20 (patch)
treec24a2d3338d4c15854301641a91947c61deff59c /parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console
parentf73bc3835679622088d9d7d2ae179964266c4d7a (diff)
removing parabola-archiso-TESTHEADmaster
Diffstat (limited to 'parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console')
-rw-r--r--parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console25
1 files changed, 0 insertions, 25 deletions
diff --git a/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console b/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console
deleted file mode 100644
index 7badfe3..0000000
--- a/parabola-archiso-TEST/root-image/etc/rc.d/functions.d/setup_special_console
+++ /dev/null
@@ -1,25 +0,0 @@
-# If an alternate console was specified on the kernel command line,
-# start agetty on it too.
-setup_special_console()
-{
- local cmdline_console
- if cmdline_console=$(kernel_cmdline console); then
- stat_busy "Starting agetty on console: ${cmdline_console}"
- local port options baud rts
- port=${cmdline_console%%,*}
- options=${cmdline_console#${port}}
- options=${options#,}
- baud=${options%%[neo]*}
- [[ ${options} == *r ]] && rts="-h"
- if ! grep -q "^${port}" /etc/securetty; then
- echo ${port} >> /etc/securetty
- fi
- if ! grep -q "^z0:" /etc/inittab; then
- echo "z0:2345:respawn:/sbin/agetty -8 -s ${rts} ${baud:-9600} ${port} linux" >> /etc/inittab
- fi
- /sbin/telinit q
- stat_done
- fi
-}
-
-add_hook sysinit_end setup_special_console