Now that /etc/inittab has been reduced to a stub, where does one add agetty and mtty entries?
On Sat, Jun 14, 2008 at 12:36 AM, Chuck Forsberg WA7KGX N2469R caf@omen.com wrote:
Now that /etc/inittab has been reduced to a stub, where does one add agetty and mtty entries?
Look in /etc/event.d and http://upstart.ubuntu.com/
Jeff
Chuck Forsberg WA7KGX N2469R wrote:
Now that /etc/inittab has been reduced to a stub, where does one add agetty and mtty entries?
The quick way to get an answer is: find /etc -type f -exec grep -l {} ; and examine files listed.
Note to other pedants: I know about xargs. let's keep it simple. ok?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
John Summerfield wrote:
The quick way to get an answer is: find /etc -type f -exec grep -l {} ; and examine files listed.
Surely you want a pattern in there somewhere?
Without one, that command never terminates - grep will sit there interpreting the value of {} as a pattern and trying to read from stdin:
$ find /etc -type f -exec grep -l {} ; &
$ ps ax | grep grep 1849 pts/48 S+ 0:00 find /etc -type f -exec grep -l {} ; 1850 pts/48 S+ 0:00 grep -l /etc/motd
Been doing that for a while now...
Bryn.
Bryn M. Reeves wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
John Summerfield wrote:
The quick way to get an answer is: find /etc -type f -exec grep -l {} ; and examine files listed.
Surely you want a pattern in there somewhere?
Without one, that command never terminates - grep will sit there interpreting the value of {} as a pattern and trying to read from stdin:
$ find /etc -type f -exec grep -l {} ; &
$ ps ax | grep grep 1849 pts/48 S+ 0:00 find /etc -type f -exec grep -l {} ; 1850 pts/48 S+ 0:00 grep -l /etc/motd
Been doing that for a while now...
Bryn.
One hopes Chuck (and others) can read a man page:-) I gave a skeleton for finding files and doing something with them.
The commands I gave are sufficient for the task, though users do need to review them and adapt them to their circumstances.
Such as by discovering, as you did, that more information is needed.
Now folk have had time to digest that, try this: sudo find /etc/ -type f -print0 | sudo xargs -0 egrep -l '/[^/]*getty'
On Tue, 17 Jun 2008, John Summerfield wrote:
To: For testers of Fedora Core development releases fedora-test-list@redhat.com From: John Summerfield debian@herakles.homelinux.org Subject: Re: The emperor's New Inittab
Bryn M. Reeves wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
John Summerfield wrote:
The quick way to get an answer is: find /etc -type f -exec grep -l {} ; and examine files listed.
Surely you want a pattern in there somewhere?
Without one, that command never terminates - grep will sit there interpreting the value of {} as a pattern and trying to read from stdin:
$ find /etc -type f -exec grep -l {} ; &
$ ps ax | grep grep 1849 pts/48 S+ 0:00 find /etc -type f -exec grep -l {} ; 1850 pts/48 S+ 0:00 grep -l /etc/motd
Been doing that for a while now...
Bryn.
One hopes Chuck (and others) can read a man page:-) I gave a skeleton for finding files and doing something with them.
Well if one was to use something like:
# pinfo manpage
then there is not a problem.
# info manpage
and I'd not put any money on it.
Regards,
Keith ;)
----------------------------------------------------------------- Websites: http://www.php-debuggers.net http://www.karsites.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
Keith Roberts wrote:
On Tue, 17 Jun 2008, John Summerfield wrote:
To: For testers of Fedora Core development releases fedora-test-list@redhat.com From: John Summerfield debian@herakles.homelinux.org Subject: Re: The emperor's New Inittab
Bryn M. Reeves wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
John Summerfield wrote:
The quick way to get an answer is: find /etc -type f -exec grep -l {} ; and examine files listed.
Surely you want a pattern in there somewhere?
Without one, that command never terminates - grep will sit there interpreting the value of {} as a pattern and trying to read from stdin:
$ find /etc -type f -exec grep -l {} ; &
$ ps ax | grep grep 1849 pts/48 S+ 0:00 find /etc -type f -exec grep -l {} ; 1850 pts/48 S+ 0:00 grep -l /etc/motd
Been doing that for a while now...
Bryn.
One hopes Chuck (and others) can read a man page:-) I gave a skeleton for finding files and doing something with them.
Well if one was to use something like:
# pinfo manpage
then there is not a problem.
# info manpage
and I'd not put any money on it.
08:17 [summer@numbat ~]$ man O man Are people really that thick?