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:
parent
d5426651e8
commit
ed07259681
27 changed files with 1671 additions and 0 deletions
31
templates/initscripts/files/rc.d/persistent_rules
Executable file
31
templates/initscripts/files/rc.d/persistent_rules
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: persistent_rules
|
||||
# REQUIRE: SERVERS locale
|
||||
# BEFORE: NETWORKING
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="persistent_rules"
|
||||
start_cmd="persistent_start"
|
||||
stop_cmd=":"
|
||||
|
||||
persistent_start()
|
||||
{
|
||||
# Adding persistent network/cdrom generated rules
|
||||
if [ -f "/dev/.udev/tmp-rules--70-persistent-cd.rules" ]; then
|
||||
echo -n "=> Adding persistent cdrom udev rules... "
|
||||
cat /dev/.udev/tmp-rules--70-persistent-cd.rules \
|
||||
>> /etc/udev/rules.d/70-persistent-cd.rules
|
||||
show_rval
|
||||
fi
|
||||
if [ -f "/dev/.udev/tmp-rules--70-persistent-net.rules" ]; then
|
||||
echo -n "=> Adding persistent network udev rules... "
|
||||
cat /dev/.udev/tmp-rules--70-persistent-net.rules \
|
||||
>> /etc/udev/rules.d/70-persistent-net.rules
|
||||
show_rval
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
Loading…
Add table
Add a link
Reference in a new issue