smeserver-dnscache/root/sbin/e-smith/systemd/dnscache.forwarder-pre

10 lines
227 B
Plaintext
Raw Permalink Normal View History

#! /bin/sh
exec 2>&1
cd /var/service/dnscache.forwarder/
# Ensure that dnscache has source of randomness to initialise its source
# port RNG
test -f ./seed || /bin/dd if=/dev/urandom bs=128 count=1 of=seed
exec<./seed
exit 0