From 5bb9a959afb70b7ad27a331b6088d5bab82b6658 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 2 Apr 2012 13:18:59 -0500 Subject: Add external textfile device class rule support to TDE hardware library Move floppy detection to the new system as an example --- tdecore/hwlibdata/CMakeLists.txt | 13 +++++++++++++ tdecore/hwlibdata/classrules/CMakeLists.txt | 17 +++++++++++++++++ .../hwlibdata/classrules/floppydisk-platform.hwclass | 9 +++++++++ tdecore/hwlibdata/classrules/floppydisk-udev.hwclass | 9 +++++++++ 4 files changed, 48 insertions(+) create mode 100644 tdecore/hwlibdata/CMakeLists.txt create mode 100644 tdecore/hwlibdata/classrules/CMakeLists.txt create mode 100644 tdecore/hwlibdata/classrules/floppydisk-platform.hwclass create mode 100644 tdecore/hwlibdata/classrules/floppydisk-udev.hwclass (limited to 'tdecore/hwlibdata') diff --git a/tdecore/hwlibdata/CMakeLists.txt b/tdecore/hwlibdata/CMakeLists.txt new file mode 100644 index 000000000..d18877c5f --- /dev/null +++ b/tdecore/hwlibdata/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2012 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + + +add_subdirectory( classrules ) diff --git a/tdecore/hwlibdata/classrules/CMakeLists.txt b/tdecore/hwlibdata/classrules/CMakeLists.txt new file mode 100644 index 000000000..3b9452f43 --- /dev/null +++ b/tdecore/hwlibdata/classrules/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2012 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + + +##### other data ################################ + +install( FILES + floppydisk-platform.hwclass floppydisk-udev.hwclass + DESTINATION ${DATA_INSTALL_DIR}/tdehwlib/deviceclasses ) diff --git a/tdecore/hwlibdata/classrules/floppydisk-platform.hwclass b/tdecore/hwlibdata/classrules/floppydisk-platform.hwclass new file mode 100644 index 000000000..8b038b300 --- /dev/null +++ b/tdecore/hwlibdata/classrules/floppydisk-platform.hwclass @@ -0,0 +1,9 @@ +[Conditions] +DRIVER=floppy + +[DeviceType] +GENTYPE=Disk +SUBTYPE=Floppy + +[DeviceSettings] +UPDATE_BLACKLISTED=false diff --git a/tdecore/hwlibdata/classrules/floppydisk-udev.hwclass b/tdecore/hwlibdata/classrules/floppydisk-udev.hwclass new file mode 100644 index 000000000..6c76d3c85 --- /dev/null +++ b/tdecore/hwlibdata/classrules/floppydisk-udev.hwclass @@ -0,0 +1,9 @@ +[Conditions] +ID_TYPE=floppy + +[DeviceType] +GENTYPE=Disk +SUBTYPE=Floppy + +[DeviceSettings] +UPDATE_BLACKLISTED=false -- cgit v1.2.1