treewide: move freifunk-related packages to separate repo
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_ssh.sh
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_ssh.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_ssh.sh
deleted file mode 100755 (executable)
index 38b331e..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-# Setup ssh. At this point only used to store pubkeys.
-
-[ ! "$(uci -q get meshwizard.ssh)" == "system" ] && exit
-
-. /lib/functions.sh
-. $dir/functions.sh
-authorized="/etc/dropbear/authorized_keys"
-
-
-config_load meshwizard
-
-i=0
-handle_pubkeys() {
-       local k="$1"
-       ( [ -f "$authorized" ] && grep -q "$k" $authorized) || {
-               echo "$k" >> $authorized
-               i=`expr $i + 1`
-       }
-}
-
-config_list_foreach ssh pubkey handle_pubkeys
-
-uci delete meshwizard.ssh
-uci_commitverbose "Added $i pubkeys to authorized_keys" meshwizard
-