Add modules to repository

This commit is contained in:
Sebastian Kinne
2017-11-16 16:42:22 +11:00
commit d0aa1e38ef
707 changed files with 96750 additions and 0 deletions

25
KeyManager/scripts/add_host.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
#2015 - Whistle Master
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
[[ -f /tmp/KeyManager.progress ]] && {
exit 0
}
LOG=/tmp/keymanager.log
HOST=`uci get keymanager.settings.host`
PORT=`uci get keymanager.settings.port`
touch /tmp/KeyManager.progress
rm -rf ${LOG}
ssh-keyscan -p ${PORT} ${HOST} > /tmp/tmp_hosts
cat /tmp/tmp_hosts >> /root/.ssh/known_hosts
echo -e "Added the following to /root/.ssh/known_hosts:" > ${LOG}
cat /tmp/tmp_hosts >> ${LOG}
rm /tmp/KeyManager.progress