[PATCH 2/3] WOL: FDI file to add Wake On LAN interface and methods
Holger Macht
hmacht at suse.de
Tue Aug 14 06:22:14 PDT 2007
FDI file adding new org.freedesktop.Hal.Device.WakeOnLan interface and
methods
WakeOnLan.GetSupported(void)
WakeOnLan.GetEnabled(void)
WakeOnLan.SetEnabled(bool)
to all wired network devices.
Signed-off-by: Holger Macht <hmacht at suse.de>
---
diff --git a/fdi/policy/10osvendor/30-wol.fdi b/fdi/policy/10osvendor/30-wol.fdi
new file mode 100644
index 0000000..a668968
--- /dev/null
+++ b/fdi/policy/10osvendor/30-wol.fdi
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deviceinfo version="0.2">
+
+ <device>
+ <match key="info.capabilities" contains="net.80203">
+ <append key="info.capabilities" type="strlist">wake_on_lan</append>
+ <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.WakeOnLan</append>
+
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_names" type="strlist">GetSupported</append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_signatures" type="strlist"></append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_argnames" type="strlist"></append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_execpaths" type="strlist">hal-system-wol-supported</append>
+
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_names" type="strlist">GetEnabled</append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_signatures" type="strlist"></append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_argnames" type="strlist"></append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_execpaths" type="strlist">hal-system-wol-enabled</append>
+
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_names" type="strlist">SetEnabled</append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_signatures" type="strlist">b</append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_argnames" type="strlist">enable</append>
+ <append key="org.freedesktop.Hal.Device.WakeOnLan.method_execpaths" type="strlist">hal-system-wol-enable</append>
+
+ </match>
+
+ </device>
+</deviceinfo>
diff --git a/fdi/policy/10osvendor/Makefile.am b/fdi/policy/10osvendor/Makefile.am
index f3c7676..aeb3053 100644
--- a/fdi/policy/10osvendor/Makefile.am
+++ b/fdi/policy/10osvendor/Makefile.am
@@ -7,7 +7,8 @@ dist_fdi_DATA = \
10-rfkill-switch.fdi \
10-laptop-panel-mgmt-policy.fdi \
15-storage-luks.fdi \
- 20-storage-methods.fdi
+ 20-storage-methods.fdi \
+ 30-wol.fdi
if BUILD_KEYMAPS
dist_fdi_DATA += 10-keymap.fdi
More information about the hal
mailing list