From 2f49e1bb285fc9ad7259caf5edb957d7c891c974 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 20 Sep 2006 10:36:16 +0000 Subject: 'upgpkg: added udev persistent rules check' --- rc.sysinit | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rc.sysinit b/rc.sysinit index 594dffb..ed80105 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -259,7 +259,17 @@ if [ "$CONSOLEFONT" != "" ]; then echo 'if [ "$TERM" = "linux" -a isatty ]; then echo -ne "\e(K"; fi' >>/etc/profile.d/locale.sh stat_done fi - +# Adding persistent network/cdrom generated rules +if [ -f "/dev/.udev/tmp-rules--70-persistent-cd.rules" ]; then + stat_busy "Adding persistent cdrom udev rules" + /bin/cat /dev/.udev/tmp-rules--70-persistent-cd.rules >> /etc/udev/rules.d/70-persistent-cd.rules + stat_done +fi +if [ -f "/dev/.udev/tmp-rules--70-persistent-net.rules" ]; then + stat_busy "Adding persistent network udev rules" + /bin/cat /dev/.udev/tmp-rules--70-persistent-net.rules >> /etc/udev/rules.d/70-persistent-net.rules + stat_done +fi # Screen blanks after 15 minutes idle time /usr/bin/setterm -blank 15 -- cgit v1.2.3-54-g00ecf