From 4b444020fa50e4f22a427b981c582b35cdb4efb1 Mon Sep 17 00:00:00 2001
From: Timo Weingärtner <timo@tiwe.de>
Date: Sat, 25 Feb 2012 21:17:00 +0100
Subject: Imported Debian version 0.2

---
 update-known-hosts | 74 ------------------------------------------------------
 1 file changed, 74 deletions(-)
 delete mode 100755 update-known-hosts

(limited to 'update-known-hosts')

diff --git a/update-known-hosts b/update-known-hosts
deleted file mode 100755
index 14f873f..0000000
--- a/update-known-hosts
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/dash
-
-set -euC
-
-CONFDIR=/etc/openssh-known-hosts
-PLUGIN_PATH=/usr/share/openssh-known-hosts/plugins:/usr/local/share/openssh-known-hosts/plugins
-CACHEDIR=/var/cache/openssh-known-hosts
-LOCK=/var/lock/openssh-known-hosts
-OUTFILE=/var/lib/openssh-known-hosts/ssh_known_hosts
-
-path_search () {
-	if [ "${1}" != "${1#*/}" ]; then
-		echo $1
-	else
-		echo "$2" | tr ':' '\n' | while read -r path; do
-			if [ -f "${path}/${1}" ]; then
-				echo "${path}/${1}"
-				break
-			fi
-		done
-	fi
-}
-
-lockfile-create "${LOCK}"
-lockfile-touch "${LOCK}" &
-LOCKPID="$!"
-
-cd "${CACHEDIR}"
-
-find -mindepth 2 -maxdepth 2 -type f -name new -delete
-
-run-parts --list "${CONFDIR}/sources/" | while read source; do
-	source=`basename ${source}`
-	mkdir -p ${source}
-	(
-		set -a
-		cd ${source}
-		. "${CONFDIR}/sources/${source}"
-		`path_search "$PLUGIN" "$PLUGIN_PATH"` >| log 2>&1 || {
-			exitcode=$?
-			rm -f new
-			ignore=''
-			for e in ${EXIT_IGNORE:-0}; do
-				if [ "$e" = "$exitcode" ]; then
-					ignore=1
-					break
-				fi
-			done
-			if [ ! "$ignore" ]; then
-				echo "${source} exited with code ${exitcode}, log follows:"
-				cat log
-				echo
-			fi
-		}
-	)
-	if [ -e ${source}/new ]; then
-		mv ${source}/new ${source}/current
-	fi
-	if [ -e ${source}/current ]; then
-		cat ${source}/current >&3
-	fi
-done 3>| "${OUTFILE}.new"
-
-mv "${OUTFILE}.new" "${OUTFILE}"
-
-for d in *; do
-	[ -d $d ] || continue
-	[ -e "${CONFDIR}/sources/$d" ] || rm -fr $d
-done
-
-kill "${LOCKPID}"
-lockfile-remove "${LOCK}"
-
-# vim:set ft=sh:
-- 
cgit v1.2.3