]> git.proxmox.com Git - dab.git/blame - scripts/init_urandom
include wheezy-updates
[dab.git] / scripts / init_urandom
CommitLineData
8ab34b87
DM
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: urandom
4# Required-Start: $local_fs
5# Required-Stop: $local_fs
6# Default-Start: S
7# Default-Stop: 0 6
8# Short-Description: Save and restore random seed between restarts.
9# Description This script saves the random seed between restarts.
10# It is called from the boot, halt and reboot scripts.
11### END INIT INFO
12
13[ -c /dev/urandom ] || exit 0
14
15PATH=/sbin:/usr/sbin:/bin:/usr/bin
16
17. /lib/init/vars.sh
18
19. /lib/lsb/init-functions
20
21# Modified version for OpenVZ containers
22
23case "$1" in
24 start|"")
25 # nothing to do inside container
26 ;;
27 stop)
28 # nothing to do inside container
29 ;;
30 restart|reload|force-reload)
31 echo "Error: argument '$1' not supported" >&2
32 exit 3
33 ;;
34 *)
35 echo "Usage: urandom start|stop" >&2
36 exit 3
37 ;;
38esac
39
40: