commit | 156840c249ddf761d9e60b06ca6d8aaa1bf88402 | [log] [tgz] |
---|---|---|
author | Alexander Shishkin <virtuoso@slind.org> | Mon Oct 31 13:18:44 2011 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Oct 31 13:18:44 2011 +0100 |
tree | 927112b5656f671980e8db99d11cbb74a6457118 | |
parent | bcdae638752d5eac9185f69b88f49ed136cf39af [diff] |
cttyhack: print detected ctty name when called without parameters Sometimes there's a need to figure out the controlling tty from a shell script, for example, to obtain a line for getty. In this case it's easier to call cttyhack than trying to repeat some of the cttyhack's logic. function old new delta cttyhack_main 283 327 +44 packed_usage 28911 28915 +4 Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>