vp-build/templates/initscripts/files/rc.d/udevd
Juan RP ed07259681 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
2009-03-06 05:17:46 +01:00

25 lines
396 B
Bash
Executable File

#!/bin/sh
#
# PROVIDE: udevd
$_rc_subr_loaded . /etc/rc.subr
name="udevd"
rcvar=$name
command="/sbin/udevd"
command_args="--daemon"
start_precmd="udevd_precmd"
udevd_precmd()
{
# More initial /dev setup that udev doesn't do
[ ! -d /dev/pts ] && /bin/mkdir /dev/pts
[ ! -d /dev/shm ] && /bin/mkdir /dev/shm
echo > /proc/sys/kernel/hotplug
echo
}
load_rc_config $name
run_rc_command "$1"