[Lunar-commits] <moonbase> udev: Added bail out function if CONFIG_SYSFS_DEPRECATED is detected

Stefan Wold ratler at lunar-linux.org
Fri Feb 26 07:39:06 CET 2010


commit a6fc3f19b1eb5df44507ac2c5db77dd505118776
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Sat Feb 13 15:01:55 2010 +0100

    udev: Added bail out function if CONFIG_SYSFS_DEPRECATED is detected
---
 filesys/udev/PRE_BUILD |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/filesys/udev/PRE_BUILD b/filesys/udev/PRE_BUILD
new file mode 100644
index 0000000..ea90ee1
--- /dev/null
+++ b/filesys/udev/PRE_BUILD
@@ -0,0 +1,20 @@
+
+
+udev_msg() {
+  message "${PROBLEM_COLOR}WARNING!!!${DEFAULT_COLOR} udev detected CONFIG_SYSFS_DEPRECTED=y in the kernel config."
+  message "This version of udev will not work with this option enabled, please"
+  message "recompile your kernel and disable CONFIG_SYSFS_DEPRECTED."
+}
+
+if test -e /proc/config.gz && zgrep -q 'CONFIG_SYSFS_DEPRECATED=y' /proc/config.gz; then
+  udev_msg
+  exit 1
+elif test -e /usr/src/linux/.config && grep -q 'CONFIG_SYSFS_DEPRECATED=y' /usr/src/linux/.config; then
+  udev_msg
+  exit 1
+elif test -e /etc/lunar/local/.config.2.6.stable && grep -q 'CONFIG_SYSFS_DEPRECATED=y' /etc/lunar/local/.config.2.6.stable; then
+  udev_msg
+  exit 1
+fi
+
+default_pre_build


More information about the Lunar-commits mailing list