ed07259681
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
31 lines
847 B
Bash
Executable file
31 lines
847 B
Bash
Executable file
#!/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"
|