summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-09-20 10:36:16 +0000
committerTobias Powalowski <tpowa@archlinux.org>2006-09-20 10:36:16 +0000
commit2f49e1bb285fc9ad7259caf5edb957d7c891c974 (patch)
tree1d2f271ee9f06f75d0c0f0eb489972288e0b4297
parent8d399cf84d6d6192a13286e33258aaa369eee1bb (diff)
'upgpkg: added udev persistent rules check'
-rwxr-xr-xrc.sysinit12
1 files changed, 11 insertions, 1 deletions
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