slitaz-tools diff tinyutils/netbox @ rev 431

Auto-install non-free firmware (to avoid wifi confusion for users)
author Rohit Joshi <jozee@slitaz.org>
date Mon Feb 22 13:05:37 2010 +0000 (2010-02-22)
parents 31c189734a0e
children 612580c57250
line diff
     1.1 --- a/tinyutils/netbox	Mon Oct 05 21:33:32 2009 +0000
     1.2 +++ b/tinyutils/netbox	Mon Feb 22 13:05:37 2010 +0000
     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: