smeserver-dnscache/root/sbin/e-smith/systemd/dnscache.forwarder-pre
2025-03-04 22:51:37 -05:00

10 lines
227 B
Bash
Executable File

#! /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