Skip to content

Commit

Permalink
Remove mgetty support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hofstaedtler committed Nov 6, 2010
1 parent e6a1bf3 commit b2fecd0
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 181 deletions.
1 change: 0 additions & 1 deletion debian/overrides
Expand Up @@ -30,7 +30,6 @@ grml-etc: init.d-script-missing-lsb-section /etc/init.d/grml-home
grml-etc: init.d-script-missing-lsb-section /etc/init.d/grml-misc
grml-etc: init.d-script-missing-lsb-section /etc/init.d/grml-reboot
grml-etc: init.d-script-possible-missing-stop /etc/init.d/ssh 0 6
grml-etc: non-standard-file-perm etc/mgetty/login.config 0600 != 0644
grml-etc: package-installs-into-etc-rc.d etc/rc0.d/important_notice
grml-etc: package-installs-into-etc-rc.d etc/rc1.d/important_notice
grml-etc: package-installs-into-etc-rc.d etc/rc2.d/important_notice
Expand Down
18 changes: 7 additions & 11 deletions debian/postrm
Expand Up @@ -8,11 +8,10 @@

set -e

TO_UNDIVERT1="login.config mgetty.config"
TO_UNDIVERT2="ssh"
TO_UNDIVERT3="kismet.conf"
TO_UNDIVERT4="wlan-ng.conf"
TO_UNDIVERT5="smb.conf"
TO_UNDIVERT1="ssh"
TO_UNDIVERT2="kismet.conf"
TO_UNDIVERT3="wlan-ng.conf"
TO_UNDIVERT4="smb.conf"

undivert_gen() {
DEXT=${3:-original}
Expand All @@ -33,18 +32,15 @@ replace_grml_with_orig_inittab() {
case "$1" in
purge)
for cmd in $TO_UNDIVERT1; do
undivert_gen $cmd /etc/mgetty
done
for cmd in $TO_UNDIVERT2; do
undivert_gen $cmd /etc/init.d
done
for cmd in $TO_UNDIVERT3; do
for cmd in $TO_UNDIVERT2; do
undivert_gen $cmd /etc/kismet
done
for cmd in $TO_UNDIVERT4; do
for cmd in $TO_UNDIVERT3; do
undivert_gen $cmd /etc/pcmcia
done
for cmd in $TO_UNDIVERT5; do
for cmd in $TO_UNDIVERT4; do
undivert_gen $cmd /etc/samba
done

Expand Down
15 changes: 5 additions & 10 deletions debian/preinst
Expand Up @@ -9,10 +9,9 @@

set -e

TO_DIVERT1="login.config mgetty.config"
TO_DIVERT2="ssh"
TO_DIVERT3="kismet.conf"
TO_DIVERT4="wlan-ng.conf"
TO_DIVERT1="ssh"
TO_DIVERT2="kismet.conf"
TO_DIVERT3="wlan-ng.conf"

divert_gen() {
DEXT=${3:-original}
Expand All @@ -39,18 +38,14 @@ rm_conffile() {
case "$1" in
install|upgrade)
for cmd in $TO_DIVERT1; do
divert_gen $cmd /etc/mgetty
done

for cmd in $TO_DIVERT2; do
divert_gen $cmd /etc/init.d
done

for cmd in $TO_DIVERT3; do
for cmd in $TO_DIVERT2; do
divert_gen $cmd /etc/kismet
done

for cmd in $TO_DIVERT4; do
for cmd in $TO_DIVERT3; do
divert_gen $cmd /etc/pcmcia
done

Expand Down
1 change: 0 additions & 1 deletion debian/rules
Expand Up @@ -52,7 +52,6 @@ binary-indep: build install
mkdir -p debian/grml-etc/usr/share/lintian/overrides/
cp -av debian/overrides debian/grml-etc/usr/share/lintian/overrides/grml-etc
dh_fixperms
chmod 0600 debian/grml-etc/etc/mgetty/login.config
chmod 0755 debian/grml-etc/etc/skel/.config/rox.sourceforge.net/MIME-types/image
dh_installdeb
find debian/grml-etc/etc -type f ! -name \*.xpm ! -name \*.png -print | \
Expand Down
5 changes: 0 additions & 5 deletions etc/inittab.grml
Expand Up @@ -75,11 +75,6 @@ po::powerokwait:/etc/init.d/powerfail stop
# T1:23:respawn:/bin/bash -c "/sbin/getty -L ttyS1 -l /usr/bin/zsh-login 9600 vt100 || sleep 30"
# T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
# T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
# T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
# T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"

# Example how to put a getty on a modem line.
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

#-- isdnutils begin
# Change the lines below for your local setup and uncomment them.
Expand Down
5 changes: 0 additions & 5 deletions etc/inittab.small
Expand Up @@ -75,11 +75,6 @@ po::powerokwait:/etc/init.d/powerfail stop
# T1:23:respawn:/bin/bash -c "/sbin/getty -L ttyS1 -l /usr/bin/zsh-login 9600 vt100 || sleep 30"
# T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
# T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
# T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
# T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"

# Example how to put a getty on a modem line.
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

#-- isdnutils begin
# Change the lines below for your local setup and uncomment them.
Expand Down
76 changes: 0 additions & 76 deletions etc/mgetty/login.config

This file was deleted.

72 changes: 0 additions & 72 deletions etc/mgetty/mgetty.config

This file was deleted.

0 comments on commit b2fecd0

Please sign in to comment.