2 # Setup ssh. At this point only used to store pubkeys.
4 [ ! "$(uci -q get meshwizard.ssh)" == "system" ] && exit
8 authorized="/etc/dropbear/authorized_keys"
11 config_load meshwizard
16 ( [ -f "$authorized" ] && grep -q "$k" $authorized) || {
17 echo "$k" >> $authorized
22 config_list_foreach ssh pubkey handle_pubkeys
24 uci delete meshwizard.ssh
25 uci_commitverbose "Added $i pubkeys to authorized_keys" meshwizard