2009-03-06 04:17:46 +00:00
|
|
|
#!/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
|
2009-03-26 09:07:50 +00:00
|
|
|
echo -n "Adding persistent cdrom udev rules... "
|
2009-03-06 04:17:46 +00:00
|
|
|
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
|
2009-03-26 09:07:50 +00:00
|
|
|
echo -n "Adding persistent network udev rules... "
|
2009-03-06 04:17:46 +00:00
|
|
|
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"
|