slitaz-tools diff tinyutils/netbox @ rev 445

gettextize subox and scpbox
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 20 01:02:21 2010 +0100 (2010-03-20)
parents 31c189734a0e
children 612580c57250
line diff
     1.1 --- a/tinyutils/netbox	Mon Oct 05 21:33:32 2009 +0000
     1.2 +++ b/tinyutils/netbox	Sat Mar 20 01:02:21 2010 +0100
     1.3 @@ -274,7 +274,7 @@
     1.4  		  cat /etc/ssh/ssh_host_rsa_key.pub ) 2> /dev/null | \
     1.5  		grep ^ssh | ssh $1 "mkdir .ssh 2> /dev/null ; \
     1.6  while read key; do for i in authorized_keys authorized_keys2; do \
     1.7 -grep -q \$key .ssh/\$i || echo \$key >> .ssh/\$i ; done ; done ; \
     1.8 +grep -qs '\$key' .ssh/\$i || echo '\$key' >> .ssh/\$i ; done ; done ; \
     1.9  chmod 700 .ssh ; chmod 600 .ssh/authorized_keys*"
    1.10  		exit 0;;
    1.11  # OpenSSH VPN: