aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 1f2623b..d9d3d27 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -372,6 +372,16 @@ fi
# Set console font if required
set_consolefont
+# Adding persistent network/cdrom generated rules
+# When the rules are generated before /etc is mounted rw they are saved to /run,
+# we therefore need to copy this from /run to /etc. This functionality is going away one day.
+for f in cd net; do
+ [[ -f /dev/.udev/tmp-rules--70-persistent-$f.rules ]] || continue
+ stat_busy "Adding persistent $f udev rules"
+ /bin/cat "/run/udev/tmp-rules--70-persistent-$f.rules" >> "/etc/udev/rules.d/70-persistent-$f.rules"
+ stat_done
+done
+
/bin/dmesg >| /var/log/dmesg.log
run_hook sysinit_end