On 09/08/10 17:39, Ted Unangst wrote:
> On Tue, Sep 7, 2010 at 7:18 PM, Alexander Hall wrote:
>> $ which true false
>> /usr/bin/true
>> /usr/bin/false
>>
>> while those should be available to /etc/rc, I'd prefer not using them.
>
> -5 points for using which. :)
Ah fuck. Yes. Darn. :-d
> $ whenc
On Wed, Sep 08, 2010 at 11:39:59AM -0400, Ted Unangst wrote:
> On Tue, Sep 7, 2010 at 7:18 PM, Alexander Hall wrote:
> > $ which true false
> > /usr/bin/true
> > /usr/bin/false
> >
> > while those should be available to /etc/rc, I'd prefer not using them.
>
> -5 points for using which. :)
>
> $
On Tue, Sep 7, 2010 at 7:18 PM, Alexander Hall wrote:
> $ which true false
> /usr/bin/true
> /usr/bin/false
>
> while those should be available to /etc/rc, I'd prefer not using them.
-5 points for using which. :)
$ whence -v true
true is a shell builtin
I happen to think that explicit true and
On Wed, 8 Sep 2010, Damien Miller wrote:
> On Tue, 7 Sep 2010, Todd T. Fries wrote:
>
> > I am not sure of a better way than what you've proposed, but the logic
> > does make perfect sense to me.
> >
> > As a shortened version of what you proposed:
> >
> > [snip]
>
> my, that is complicated. I
> > I am not sure of a better way than what you've proposed, but the logic
> > does make perfect sense to me.
> >
> > As a shortened version of what you proposed:
> >
> > [snip]
>
> my, that is complicated. Is there anything we could do in ssh-keygen to
> make this simpler?
I thought I asked yo
On Tue, 7 Sep 2010, Todd T. Fries wrote:
> I am not sure of a better way than what you've proposed, but the logic
> does make perfect sense to me.
>
> As a shortened version of what you proposed:
>
> [snip]
my, that is complicated. Is there anything we could do in ssh-keygen to
make this simple
On 09/08/10 01:12, Ted Unangst wrote:
> On Tue, Sep 7, 2010 at 6:47 PM, Alexander Hall wrote:
>
> This isn't C. :)
No... but it does work. :-)
[ ] == false
[ 1 ] == true
also,
$ which true false
/usr/bin/true
/usr/bin/false
while those should be available to /etc/rc, I'd prefer not using th
On Tue, Sep 7, 2010 at 6:47 PM, Alexander Hall wrote:
This isn't C. :)
> first=1
first=true
>first=
first=false
> [ $first ] || echo
$first || echo
On 09/08/10 00:47, Alexander Hall wrote:
> I also want to kill the IMO useless "ssh-keygen: " part of the output,
> if noone opposes.
I oppose. Disregard that.
ype in dsa ecdsa rsa rsa1; do
keyfile=/etc/ssh/ssh_host_${type}_key
[ $type = rsa1 ] && keyfile=/etc/ssh/ssh_host_key
if [ ! -f $keyfile ]; then
[ $first ] && echo -n "ssh-keygen: generating new host key:"
typeset -u uc
;
fi
_name=`echo "${_type}" | tr a-z A-Z`
if [ ! -f "${_keyfile}" ]; then
if [ "${ssh_keys}" -eq 0 ]; then
echo -n 'ssh-keygen: generating new host key:'
ssh_keys=1
_key="/etc/ssh/ssh_host_${_type}_key"
fi
_name=`echo ${_type} | tr a-z A-Z`
if [ ! -f "${_key}" ]; then
if [ "${ssh_keys}" -eq 0 ]; then
echo -n 'ssh-keygen: generating new host
Penned by Martin Pelik??n on 20100907 18:55.00, we have:
| 2010/9/7, TeXitoi :
| > My proposition, avoiding function:
| >
| > ssh_keys=TOPRINT
| >
| > for key in rsa1 dsa rsa ecdsa; do
| > if [ "$ssh_key" = TOPRINT ]; then
| > echo -n "
2010/9/7, TeXitoi :
> My proposition, avoiding function:
>
> ssh_keys=TOPRINT
>
> for key in rsa1 dsa rsa ecdsa; do
> if [ "$ssh_key" = TOPRINT ]; then
> echo -n "ssh-keygen: generating new host key:"
> ssh_key=PRI
"Todd T. Fries" writes:
> Penned by Christian Weisgerber on 20100907 16:55.45, we have:
> |
> | ssh_keys=0
> | if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
> | if [ $((ssh_keys++)) -eq 0 ]; then
> | echo -n "ssh-keygen: generating new host key:&
$1" uc="$2" part="$3" file
[ "$part" ] && part="${part}_"
file=/etc/ssh/ssh_host_${part}key
if [ $((ssh_keys++)) -eq 0 ]; then
echo -n "ssh-keygen: generating new host key:"
fi
if
Theo has suggested that it would be nicer if the "generating new
host key" output was all on one line.
Basically we want "ssh-keygen: generating new host key:" to start
the line, followed by the algorith name as each key is generated.
In the unlikely event that an error happ
17 matches
Mail list logo