From: Michael Tremer Date: Fri, 24 Sep 2010 21:37:22 +0000 (+0200) Subject: installer: Remove autologin feature. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dcf554f170b28ffd9d57a5e23c26a7365c1ad86;p=ipfire-3.x.git installer: Remove autologin feature. --- diff --git a/src/install/etc/init/serial.conf b/src/install/etc/init/serial.conf deleted file mode 100644 index 76639891b..000000000 --- a/src/install/etc/init/serial.conf +++ /dev/null @@ -1,24 +0,0 @@ -description "Start a tty" -author "IPFire Team" - -# 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 -# 'serial-console-available ' is emitted, which -# triggers this script. -# -# 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 by copying -# /etc/init/tty[2-6], and changing the getty line in that file. - -start on serial-console-available * -stop on starting shutdown or starting reboot - -pre-start script - /sbin/securetty $DEV -end script - -exec /sbin/agetty -n -l /root/autologin $DEV $SPEED vt100-nav diff --git a/src/install/etc/init/tty1.conf b/src/install/etc/init/tty1.conf deleted file mode 100644 index ab40e159f..000000000 --- a/src/install/etc/init/tty1.conf +++ /dev/null @@ -1,8 +0,0 @@ -description "Start a tty" -author "IPFire Team" - -start on stopped mountfs -stop on starting shutdown - -respawn -exec /sbin/agetty -n -l /root/autologin tty1 9600 diff --git a/src/install/etc/init/tty2.conf b/src/install/etc/init/tty2.conf deleted file mode 100644 index 83bafd5a4..000000000 --- a/src/install/etc/init/tty2.conf +++ /dev/null @@ -1,8 +0,0 @@ -description "Start a tty" -author "IPFire Team" - -start on stopped mountfs -stop on starting shutdown - -respawn -exec /sbin/agetty -n -l /root/autologin tty2 9600 diff --git a/src/install/etc/init/tty3.conf b/src/install/etc/init/tty3.conf deleted file mode 100644 index 8045bd4b8..000000000 --- a/src/install/etc/init/tty3.conf +++ /dev/null @@ -1,8 +0,0 @@ -description "Start a tty" -author "IPFire Team" - -start on stopped mountfs -stop on starting shutdown - -respawn -exec /sbin/agetty -n -l /root/autologin tty3 9600 diff --git a/src/install/etc/init/tty4.conf b/src/install/etc/init/tty4.conf deleted file mode 100644 index b9f4217f5..000000000 --- a/src/install/etc/init/tty4.conf +++ /dev/null @@ -1,8 +0,0 @@ -description "Start a tty" -author "IPFire Team" - -start on stopped mountfs -stop on starting shutdown - -respawn -exec /sbin/agetty -n -l /root/autologin tty4 9600 diff --git a/src/install/root/.bash_profile b/src/install/root/.bash_profile deleted file mode 100644 index 00680d662..000000000 --- a/src/install/root/.bash_profile +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # -############################################################################### - -LANG=en_US.UTF-8 -export LANG - -command=/sbin/pomona -debug=off -mode= - -for o in $(cat /proc/cmdline) ; do - case $o in - mode=*) - mode=${o#mode=} - ;; - debug) - debug=on - esac -done - -if [ "$mode" = "install" ] && [[ "$(tty)" =~ "tty1" ]]; then - if [ "$debug" == "on" ]; then - command="$command --debug" - fi - exec $command -fi diff --git a/src/install/root/autologin b/src/install/root/autologin deleted file mode 100755 index c8e425186..000000000 --- a/src/install/root/autologin +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -echo "Logging in \"root\"" -exec /bin/login -f root