#!/bin/bash

PIDFILE=/var/run/prng/prngd.pid
SEEDFILE=/var/cache/prng/prngd-seed
PROGRAM=/usr/sbin/prngd
ARGS="-p '$PIDFILE' -s '$SEEDFILE'"
RUNLEVEL=2
NEEDS=''

. /etc/init.d/smgl_init

function start()
{
  mkdir -p /var/run/prng
  mkdir -p /var/cache/prng
  chmod 0700 /var/run/prng
  chmod 0700 /var/cache/prng
  echo "Starting $NAME..."
  loadproc $PROGRAM $ARGS
}

