Added initscripts-2009.01 template.
This package contains all files required for booting the lsXL linux system built through xbps. Currently it uses the NetBSD rc.d(8) system, sysvinit and modified BSD style scripts modified from Arch linux. --HG-- extra : convert_revision : 4584be26dd672ba33f9b1d76534a22d4715664ea
This commit is contained in:
22
templates/initscripts/files/rc.d/random_seed
Executable file
22
templates/initscripts/files/rc.d/random_seed
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: random_seed
|
||||
# REQUIRE: SERVERS sysclock
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="random_seed"
|
||||
start_cmd="rseed_start"
|
||||
stop_cmd=":"
|
||||
|
||||
rseed_start()
|
||||
{
|
||||
if [ -f /var/run/random-seed ]; then
|
||||
echo -n "=> Initializing random seed... "
|
||||
cat /var/run/random-seed >/dev/urandom
|
||||
show_rval
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
Reference in New Issue
Block a user