[Lunar-commits] <moonbase> udev: Ask whether or we need to wipe the device order/cache.
Moritz Heiber
moe at lunar-linux.org
Thu Jul 24 22:30:41 CEST 2008
commit b98cecea5f007d0c6878db945fe64447a6ea481f
Author: Moritz Heiber <moe at lunar-linux.org>
Date: Thu Jul 24 22:30:41 2008 +0200
udev: Ask whether or we need to wipe the device order/cache.
---
filesys/udev/BUILD | 5 +++--
filesys/udev/CONFIGURE | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/filesys/udev/BUILD b/filesys/udev/BUILD
index cdf229c..4c81d36 100644
--- a/filesys/udev/BUILD
+++ b/filesys/udev/BUILD
@@ -30,8 +30,9 @@
install -m755 ${SOURCE_CACHE}/${SOURCE3} \
/etc/udev/scripts.d/raid-devfs.sh &&
- # We need to remove those in order to get a clean start
- rm -f /etc/udev/rules.d/70-persistent-{cd,net}.rules &&
+ if "$WIPE_NET_DEV" == "y" ; then
+ rm -f /etc/udev/rules.d/70-persistent-{cd,net}.rules
+ fi &&
mv -f /etc/udev/rules.d/40-gentoo.rules /etc/udev/rules.d/40-lunar.rules
diff --git a/filesys/udev/CONFIGURE b/filesys/udev/CONFIGURE
new file mode 100644
index 0000000..8556231
--- /dev/null
+++ b/filesys/udev/CONFIGURE
@@ -0,0 +1 @@
+mquery WIPE_NET_DEV "Do you want me to wipe your network device cache?" n
More information about the Lunar-commits
mailing list